mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-17 05:50:56 +01:00
Interpreter: minor corrections to split_line
This commit is contained in:
parent
e287887765
commit
b04015286c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user