We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7abf62b commit d11c8c6Copy full SHA for d11c8c6
src/Utils.pm
@@ -1589,9 +1589,12 @@ sub parse_portal_conversation_args {
1589
# Check current position
1590
$i = pos($command);
1591
1592
- # Handle quoted strings
1593
- if ($command =~ /\G(["'])(.*?)\1\s*/gc) {
1594
- push @args, $2;
+ # Handle key=value where value can be quoted string (remove quotes)
+ if ($command =~ /\G(\w+)=("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')\s*/gc) {
+ my ($key, $val) = ($1, $2);
1595
+ # Remove the quotes around $val
1596
+ $val =~ s/^["'](.*)["']$/$1/;
1597
+ push @args, "$key=$val";
1598
}
1599
# Handle regex r~/.../flags
1600
elsif ($command =~ /\Gr~\/((?:\\\/|[^\/])+)\/([a-z]*)\s*/gc) {
@@ -1825,4 +1828,4 @@ sub pin_encode {
1825
1828
1826
1829
1827
1830
-1;
1831
+1;
0 commit comments