Indeed, thanks! Fix coming...TheQwerty wrote: foreach aborts unexpectedly after handling a token containing an odd number of quotes:Separator makes no difference - I ran into it parsing output from GetSectionList with its default CRLF.Code: Select all
$test = 'a|b"c|d|e|f|g'; $c = GetToken($test, 'Count', '|'); $i = 0; foreach($line, $test) { $i++; } Echo "Iterated over $i lines.<crlf>Expected: $c";
FYI, any quotes within the ListOfTokens in a Foreach statement are (now) seen as normal characters. They have no special "quoting function". This was not 100% implemented before the fix.