@putout/plugin-putout 28.0.0 → 28.0.1
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.
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import {operator} from 'putout';
|
|
2
|
+
import regexpEscapePolifyll from 'regexp.escape';
|
|
3
|
+
|
|
4
|
+
const {
|
|
5
|
+
escape: regexpEscape = regexpEscapePolifyll,
|
|
6
|
+
} = RegExp;
|
|
2
7
|
|
|
3
8
|
const {
|
|
4
9
|
setLiteralValue,
|
|
@@ -73,7 +78,7 @@ const check = ({__a}, path) => {
|
|
|
73
78
|
if (name.includes(')'))
|
|
74
79
|
return false;
|
|
75
80
|
|
|
76
|
-
const safeName =
|
|
81
|
+
const safeName = regexpEscape(name);
|
|
77
82
|
|
|
78
83
|
const regEnd = RegExp(`: ${safeName}$`);
|
|
79
84
|
const regMiddle = RegExp(`: ${safeName}: .*`);
|
|
@@ -116,4 +121,3 @@ const getTestNodeArgument = (path) => {
|
|
|
116
121
|
|
|
117
122
|
return first;
|
|
118
123
|
};
|
|
119
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/plugin-putout",
|
|
3
|
-
"version": "28.0.
|
|
3
|
+
"version": "28.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊Putout plugin helps with plugins development",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"fullstore": "^3.0.0",
|
|
35
35
|
"just-camel-case": "^6.2.0",
|
|
36
36
|
"just-kebab-case": "^4.2.0",
|
|
37
|
+
"regexp.escape": "^2.0.1",
|
|
37
38
|
"try-catch": "^3.0.0"
|
|
38
39
|
},
|
|
39
40
|
"keywords": [
|