properties-file 3.2.23 → 3.2.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/unescape/index.js +7 -4
- package/package.json +3 -3
package/lib/unescape/index.js
CHANGED
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @throws {@link Error}
|
|
9
9
|
* This exception is thrown if malformed escaped unicode characters are present.
|
|
10
|
-
*/var unescapeContent=exports.unescapeContent=function(a){
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
*/var unescapeContent=exports.unescapeContent=function(a){return a.replace(/\\[^u]|\\u.{4}/g,function(a){var b=a.charAt(1);switch(b){case"f":// Formfeed.
|
|
11
|
+
return"\f";case"n":// Newline.
|
|
12
|
+
return"\n";case"r":// Carriage return.
|
|
13
|
+
return"\r";case"t":// Tab.
|
|
14
|
+
return"\t";case"u":{// Unicode character.
|
|
15
|
+
var c=a.slice(2,6);if(!/[\da-f]{4}/i.test(c))// Code point can only be within Unicode's Multilingual Plane (BMP).
|
|
16
|
+
throw new Error("malformed escaped unicode characters '\\u".concat(c,"'"));return String.fromCodePoint(Number.parseInt(c,16))}default:return b}})};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "properties-file",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.24",
|
|
4
4
|
"description": ".properties file parser, editor, formatter and Webpack loader.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
".properties",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"@babel/preset-typescript": "7.23.0",
|
|
70
70
|
"@release-it/conventional-changelog": "7.0.2",
|
|
71
71
|
"@types/jest": "29.5.5",
|
|
72
|
-
"@typescript-eslint/eslint-plugin": "6.7.
|
|
73
|
-
"@typescript-eslint/parser": "6.7.
|
|
72
|
+
"@typescript-eslint/eslint-plugin": "6.7.4",
|
|
73
|
+
"@typescript-eslint/parser": "6.7.4",
|
|
74
74
|
"babel-preset-minify": "^0.5.2",
|
|
75
75
|
"check-node-version": "^4.2.1",
|
|
76
76
|
"dotenv-cli": "7.3.0",
|