3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-11-13 04:57:26 +01: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; my $result;
if ($args =~ /^u\+/i) { if ($args =~ /^u\+/i) {
$result = `unicode --max=100 --color=off \Q$args\E`; $result = `unicode --max=100 --color=off -- \Q$args\E`;
} elsif ($search) { } 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 { } 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"; print "$result\n";

View File

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