@lingui/macro
Advanced tools
Comparing version 3.8.5 to 3.8.6
@@ -330,3 +330,3 @@ "use strict"; | ||
// it's an unicode char so we should keep them | ||
if (value.includes("\\u")) return value; // if not we replace the extra scaped literals | ||
if (value.includes("\\u")) return value.replace(removeExtraScapedLiterals, "\/u"); // if not we replace the extra scaped literals | ||
@@ -333,0 +333,0 @@ return value.replace(removeExtraScapedLiterals, "`"); |
@@ -35,3 +35,3 @@ "use strict"; | ||
var pluralRuleRe = /(_[\d\w]+|zero|one|two|few|many|other)/; | ||
var removeExtraScapedLiterals = /(?:\\(.))/; | ||
var removeExtraScapedLiterals = /(?:\\(.))/g; | ||
@@ -339,3 +339,3 @@ var jsx2icuExactChoice = function jsx2icuExactChoice(value) { | ||
// it's an unicode char so we should keep them | ||
if (value.includes("\\u")) return value; // if not we replace the extra scaped literals | ||
if (value.includes("\\u")) return value.replace(removeExtraScapedLiterals, "\/u"); // if not we replace the extra scaped literals | ||
@@ -342,0 +342,0 @@ return value.replace(removeExtraScapedLiterals, "`"); |
{ | ||
"name": "@lingui/macro", | ||
"version": "3.8.5", | ||
"version": "3.8.6", | ||
"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.5", | ||
"@lingui/conf": "^3.8.6", | ||
"ramda": "^0.27.1" | ||
@@ -36,0 +36,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47083
Updated@lingui/conf@^3.8.6