mirror of https://github.com/pragma-/pbot.git
Unescape escaped command substitutions
This commit is contained in:
parent
d902edd122
commit
0d0c12e798
|
@ -264,6 +264,8 @@ sub interpret {
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# unescape any escaped substituted commands
|
||||||
|
$arguments =~ s/\\&\{/&{/g if defined $arguments;
|
||||||
|
|
||||||
# parse out a pipe unless escaped
|
# parse out a pipe unless escaped
|
||||||
if (defined $arguments && $arguments =~ m/(?<!\\)\|\s*\{\s*[^}]+\}\s*$/) {
|
if (defined $arguments && $arguments =~ m/(?<!\\)\|\s*\{\s*[^}]+\}\s*$/) {
|
||||||
|
|
Loading…
Reference in New Issue