From ca228b9e06e6cf40ebac4420ea491198916a5c95 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 9 May 2020 03:13:56 -0700 Subject: [PATCH] Interpreter: extract_bracketed/split_line now properly handle a final trailing backslash --- PBot/Interpreter.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PBot/Interpreter.pm b/PBot/Interpreter.pm index 1e6c26ec..59841b43 100644 --- a/PBot/Interpreter.pm +++ b/PBot/Interpreter.pm @@ -386,6 +386,7 @@ sub extract_bracketed { $result = ''; } else { # add final token and exit + $token .= '\\' if $escaped; $rest .= $token if $extracted; last; } @@ -535,6 +536,7 @@ sub split_line { $token = $last_token; } else { # add final token and exit + $token .= '\\' if $escaped; push @args, $token if length $token; last; }