Skip to content

Commit ccfdbd6

Browse files
committed
Fix #59
1 parent 674cadc commit ccfdbd6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/EDI/Parser.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ class Parser
5858
"UNOC" => "/[\x01-\x1F\x7F-\x9F]/"
5959
];
6060

61-
6261
/**
6362
* @var bool : TRUE when UNA's characters are known, FALSE when they are not. NULL means no initialization
6463
*/
@@ -230,7 +229,7 @@ private function unwrap($string)
230229
$this->analyseUNA(preg_replace("#^UNA#", "", substr($string, 0, 9)));
231230
}
232231
if (!$this->unbChecked && substr($string, 0, 3) === "UNB") {
233-
$this->analyseUNB(preg_replace("#^UNB#", "", substr($string, 0, 8)));
232+
$this->analyseUNB(preg_replace("#^UNB\+#", "", substr($string, 0, 8)));
234233
}
235234

236235
$file2=array();

0 commit comments

Comments
 (0)