Skip to content

Commit

Permalink
Fixed a bug that caused parseStringArray() to return incorrect values…
Browse files Browse the repository at this point in the history
… for escaped strings
  • Loading branch information
ahtih committed Nov 30, 2011
1 parent b65b76f commit cdbbf2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/textParsers.js
Expand Up @@ -66,7 +66,7 @@ var parseStringArray = function(val) {
return x.map(function (el) {
if (el === 'NULL') return null;
if (el[0] === '{') return arguments.callee(el);
if (el[0] === '\"') return el.substring(1, el.length - 1).replace('\\\"', '\"');
if (el[0] === '\"') return el.substring(1, el.length - 1).replace(/\\(.)/g, '$1');
return el;
});
};
Expand Down

0 comments on commit cdbbf2e

Please sign in to comment.