babel-plugin-object-to-json-parse
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -37,4 +37,4 @@ "use strict"; | ||
if (/[\t\f\r\n\b]/g.test(value)) { | ||
const codes = ['\t', '\f', '\r', '\n', '\t', '\b']; | ||
const replaceCodes = ['\\t', '\\f', '\\r', '\\n', '\\t', '\\b']; | ||
const codes = ['\f', '\r', '\n', '\t', '\b']; | ||
const replaceCodes = ['\\f', '\\r', '\\n', '\\t', '\\b']; | ||
for (let i = 0; i < codes.length; i++) { | ||
@@ -41,0 +41,0 @@ value = value.replace(new RegExp(codes[i]), replaceCodes[i]); |
{ | ||
"name": "babel-plugin-object-to-json-parse", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"main": "dist/index.js", | ||
@@ -9,3 +9,3 @@ "scripts": { | ||
"lint": "eslint 'src/**/*.ts' --fix", | ||
"test": "ls test/__fixtures__/**/*.js | xargs -L1 node && jest" | ||
"test": "find test/__fixtures__ -name *.js | xargs -L1 node && jest" | ||
}, | ||
@@ -12,0 +12,0 @@ "dependencies": { |
11126