Skip to content

Commit cdbbf2e

Browse files
committed
Fixed a bug that caused parseStringArray() to return incorrect values for escaped strings
1 parent b65b76f commit cdbbf2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/textParsers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ var parseStringArray = function(val) {
6666
return x.map(function (el) {
6767
if (el === 'NULL') return null;
6868
if (el[0] === '{') return arguments.callee(el);
69-
if (el[0] === '\"') return el.substring(1, el.length - 1).replace('\\\"', '\"');
69+
if (el[0] === '\"') return el.substring(1, el.length - 1).replace(/\\(.)/g, '$1');
7070
return el;
7171
});
7272
};

0 commit comments

Comments
 (0)