mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 11:12:42 +01:00
Commands/Factoids: factchange
: handle escaped delimiters
This commit is contained in:
parent
8d5b992b4c
commit
13b09be29a
@ -1254,11 +1254,11 @@ sub cmd_factchange {
|
||||
if (defined $sub) {
|
||||
$delim = quotemeta $delim;
|
||||
|
||||
if ($sub =~ /^s$delim(.*?)$delim(.*)$delim(.*)$/) {
|
||||
if ($sub =~ /^s(?<!\\)$delim(.*?)(?<!\\)$delim(.*)(?<!\\)$delim(.*)$/) {
|
||||
$tochange = $1;
|
||||
$changeto = $2;
|
||||
$modifier = $3;
|
||||
} elsif ($sub =~ /^s$delim(.*?)$delim(.*)$/) {
|
||||
} elsif ($sub =~ /^s(?<!\\)$delim(.*?)(?<!\\)$delim(.*)$/) {
|
||||
$tochange = $1;
|
||||
$changeto = $2;
|
||||
$modifier = '';
|
||||
|
@ -25,8 +25,8 @@ use PBot::Imports;
|
||||
# These are set by the /misc/update_version script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 4622,
|
||||
BUILD_DATE => "2023-02-20",
|
||||
BUILD_REVISION => 4623,
|
||||
BUILD_DATE => "2023-02-23",
|
||||
};
|
||||
|
||||
sub initialize {}
|
||||
|
Loading…
Reference in New Issue
Block a user