@putout/plugin-remove-useless-escape 9.1.0 → 9.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.
@@ -74,6 +74,9 @@ function isEscaped(raw) {
74
74
  if (raw.includes('\\h') && !raw.includes('\\\\h'))
75
75
  return true;
76
76
 
77
+ if (raw.includes('\\z') && !raw.includes('\\\\z'))
78
+ return true;
79
+
77
80
  if (/\\\\/g.test(raw))
78
81
  return false;
79
82
 
@@ -117,7 +120,8 @@ function unEscape(raw) {
117
120
  .replaceAll('\\{', '{')
118
121
  .replaceAll('\\.', '.')
119
122
  .replace(/(\\),/, ',')
120
- .replaceAll('\\h', 'h');
123
+ .replaceAll('\\h', 'h')
124
+ .replaceAll('\\z', 'z');
121
125
 
122
126
  for (const emoji of match(raw)) {
123
127
  raw = raw.replace(createEncodedRegExp(emoji), emoji);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-remove-useless-escape",
3
- "version": "9.1.0",
3
+ "version": "9.2.0",
4
4
  "type": "module",
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",
@@ -41,7 +41,7 @@
41
41
  "@putout/plugin-regexp": "*",
42
42
  "@putout/test": "^15.0.0",
43
43
  "c8": "^10.0.0",
44
- "eslint": "^10.0.0-alpha.0",
44
+ "eslint": "^10.0.0",
45
45
  "eslint-plugin-n": "^17.0.0",
46
46
  "eslint-plugin-putout": "^30.0.0",
47
47
  "madrun": "^12.0.0"