Skip to content

Commit cacb790

Browse files
authored
Merge pull request #76 from wendelin/master
Update Encoder.php
2 parents b4bf8bf + e10ebc8 commit cacb790

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/EDI/Encoder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ public function encodeSegment($row)
9797
private function escapeValue($str)
9898
{
9999
$search = [
100+
$this->symbRel,
100101
$this->sepComp,
101102
$this->sepData,
102-
$this->symbRel,
103103
$this->symbEnd
104104
];
105105
$replace = [
106+
$this->symbRel . $this->symbRel,
106107
$this->symbRel . $this->sepComp,
107108
$this->symbRel . $this->sepData,
108-
$this->symbRel . $this->symbRel,
109109
$this->symbRel . $this->symbEnd
110110
];
111111
return str_replace($search, $replace, $str);

0 commit comments

Comments
 (0)