3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-04 18:38:47 +02:00

Interpreter: minor corrections to split_line

This commit is contained in:
Pragmatic Software 2019-05-28 11:56:06 -07:00
parent e287887765
commit b04015286c

View File

@ -364,6 +364,7 @@ sub split_line {
$i = $pos;
$ignore_quote = 1;
$quote = undef;
$last_ch = ' ';
$token = '';
} else {
# add final token and exit
@ -375,7 +376,7 @@ sub split_line {
$ch = $chars[$i++];
if ($escaped) {
$token .= $ch;
$token .= "\\$ch";
$escaped = 0;
next;
}