Closed
Description
Hi,
Question marks should be added as ?? because it's an escape character.
In this example the question marks escape the ' and this should not happen:
ATT+1400+??????'
XRH+3'
$c = new \EDI\Parser();
$c->setStripRegex('//');
$c->loadString($edistring);
$message = $c->get();
$message contains this:
[99] => Array
(
[0] => ATT
[1] => 1400
[2] => ???'XRH
[3] => 3
)
As you can see the question marks are correctly parsed into ??? but the ' is still escaped and this is not correct.
Any idea how this could be fixed ?
Metadata
Metadata
Assignees
Labels
No labels