mirror of
https://github.com/pragma-/pbot.git
synced 2025-05-03 21:27:31 +02:00
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…
x
Reference in New Issue
Block a user