Skip to content

Commit

Permalink
Merge pull request #960 from OpenAF/t8
Browse files Browse the repository at this point in the history
Fix splitKVBySeparator function to handle escape characters correctly
  • Loading branch information
nmaguiar authored Feb 19, 2024
2 parents b7f9526 + 143c620 commit 1e1d4c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/openaf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2853,7 +2853,7 @@ const splitKVBySeparator = function(aString, aOptions) {
buf += aEsc
} else {
// Unless it's escape keep it
if (aString[i] != aEsc || (i < aString.length && aString[i+1] != aSep)) buf += aString[i]
if (aString[i] != aEsc || (i < aString.length && aString[i+1] != aSep && aString[i+1] != "\"" && aString[i+1] != "'")) buf += aString[i]
}
}
if (buf.length > 0) {
Expand Down

0 comments on commit 1e1d4c5

Please sign in to comment.