@putout/plugin-remove-useless-escape 5.1.0 → 5.2.0
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.
|
@@ -110,6 +110,9 @@ function isEscaped(raw) {
|
|
|
110
110
|
if (raw.includes('\\$'))
|
|
111
111
|
return true;
|
|
112
112
|
|
|
113
|
+
if (raw.includes('\\.'))
|
|
114
|
+
return true;
|
|
115
|
+
|
|
113
116
|
if (raw.includes('\\{'))
|
|
114
117
|
return true;
|
|
115
118
|
|
|
@@ -139,6 +142,7 @@ function unEscape(raw) {
|
|
|
139
142
|
.replaceAll('\\^', '^')
|
|
140
143
|
.replaceAll('\\$', '$')
|
|
141
144
|
.replaceAll('\\{', '{')
|
|
145
|
+
.replaceAll('\\.', '.')
|
|
142
146
|
.replace(/(\\),/, ',');
|
|
143
147
|
|
|
144
148
|
for (const emoji of match(raw)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/plugin-remove-useless-escape",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊Putout plugin adds ability to find and remove useless escape",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"@putout/plugin-madrun": "*",
|
|
40
40
|
"@putout/plugin-regexp": "*",
|
|
41
41
|
"@putout/test": "^8.0.0",
|
|
42
|
-
"c8": "^
|
|
43
|
-
"eslint": "^
|
|
44
|
-
"eslint-plugin-n": "^
|
|
42
|
+
"c8": "^9.0.0",
|
|
43
|
+
"eslint": "^9.0.0-alpha.0",
|
|
44
|
+
"eslint-plugin-n": "^17.0.0-0",
|
|
45
45
|
"eslint-plugin-putout": "^22.0.0",
|
|
46
46
|
"madrun": "^10.0.0"
|
|
47
47
|
},
|