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:
parent
913e5a9273
commit
9ceabaf768
6
applets/unicode.pl
vendored
6
applets/unicode.pl
vendored
@ -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";
|
||||||
|
|||||||
@ -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 {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user