3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-10-20 18:17:26 +02:00

applets/unicode.pl: prevent input from being processed for flags

This commit is contained in:
Pragmatic Software 2025-10-19 01:29:20 -07:00
parent 913e5a9273
commit 9ceabaf768
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
2 changed files with 5 additions and 5 deletions

6
applets/unicode.pl vendored
View File

@ -43,11 +43,11 @@ if ($args =~ /^(u\+[^.]+)\s*\.\.\s*(.*)$/i) {
my $result;
if ($args =~ /^u\+/i) {
$result = `unicode --max=100 --color=off \Q$args\E`;
$result = `unicode --max=100 --color=off -- \Q$args\E`;
} elsif ($search) {
$result = `unicode -r --max=100 --color=off \Q$args\E --format 'U+{ordc:04X} {pchar} {name};\n'`;
$result = `unicode -r --max=100 --color=off -format 'U+{ordc:04X} {pchar} {name};\n' -- \Q$args\E`;
} else {
$result = `unicode -s --max=100 --color=off \Q$args\E --format 'U+{ordc:04X} ({utf8}) {pchar} {name} Category: {category} ({category_desc}) {opt_unicode_block}{opt_unicode_block_desc}{mirrored_desc}{opt_combining}{combining_desc}{opt_decomp}{decomp_desc};\n'`;
$result = `unicode -s --max=100 --color=off --format 'U+{ordc:04X} ({utf8}) {pchar} {name} Category: {category} ({category_desc}) {opt_unicode_block}{opt_unicode_block_desc}{mirrored_desc}{opt_combining}{combining_desc}{opt_decomp}{decomp_desc};\n' -- \Q$args\E`;
}
print "$result\n";

View File

@ -25,8 +25,8 @@ use PBot::Imports;
# These are set by the /misc/update_version script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 4908,
BUILD_DATE => "2025-10-16",
BUILD_REVISION => 4910,
BUILD_DATE => "2025-10-19",
};
sub initialize {}