Skip to content

Commit e10ebc8

Browse files
authored
Update Encoder.php
Changed replace order to avoid double quoting
1 parent b4bf8bf commit e10ebc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/EDI/Encoder.php

+2-2
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)