@lingui/macro
Advanced tools
Comparing version 3.8.6 to 3.8.7
@@ -38,3 +38,2 @@ "use strict"; | ||
var keepNewLineRe = /(?:\r\n|\r|\n)+\s+/g; | ||
var removeExtraScapedLiterals = /(?:\\(.))/g; | ||
@@ -330,6 +329,4 @@ function normalizeWhitespace(text) { | ||
value: function clearBackslashes(value) { | ||
// it's an unicode char so we should keep them | ||
if (value.includes("\\u")) return value.replace(removeExtraScapedLiterals, "\/u"); // if not we replace the extra scaped literals | ||
return value.replace(removeExtraScapedLiterals, "`"); | ||
// if not we replace the extra scaped literals | ||
return value.replace(/\\`/g, "`"); | ||
} | ||
@@ -336,0 +333,0 @@ /** |
@@ -35,3 +35,2 @@ "use strict"; | ||
var pluralRuleRe = /(_[\d\w]+|zero|one|two|few|many|other)/; | ||
var removeExtraScapedLiterals = /(?:\\(.))/g; | ||
@@ -338,6 +337,4 @@ var jsx2icuExactChoice = function jsx2icuExactChoice(value) { | ||
value: function clearBackslashes(value) { | ||
// it's an unicode char so we should keep them | ||
if (value.includes("\\u")) return value.replace(removeExtraScapedLiterals, "\/u"); // if not we replace the extra scaped literals | ||
return value.replace(removeExtraScapedLiterals, "`"); | ||
// if not we replace the extra scaped literals | ||
return value.replace(/\\`/g, "`"); | ||
} | ||
@@ -344,0 +341,0 @@ /** |
{ | ||
"name": "@lingui/macro", | ||
"version": "3.8.6", | ||
"version": "3.8.7", | ||
"description": "Macro for generating messages in ICU MessageFormat syntax", | ||
@@ -33,3 +33,3 @@ "main": "index.js", | ||
"@babel/runtime": "^7.11.2", | ||
"@lingui/conf": "^3.8.6", | ||
"@lingui/conf": "^3.8.7", | ||
"ramda": "^0.27.1" | ||
@@ -36,0 +36,0 @@ }, |
46679
966
Updated@lingui/conf@^3.8.7