@artilleryio/int-commons 1.0.0 → 2.0.0-5b10fdf
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/engine_util.js +3 -2
- package/index.js +1 -1
- package/package.json +6 -2
package/engine_util.js
CHANGED
|
@@ -606,8 +606,9 @@ function extractRegExp(doc, expr, opts) {
|
|
|
606
606
|
if (!match) {
|
|
607
607
|
return '';
|
|
608
608
|
}
|
|
609
|
-
|
|
610
|
-
|
|
609
|
+
|
|
610
|
+
if (group && match.groups) {
|
|
611
|
+
return match.groups[group];
|
|
611
612
|
} else if (match[0]) {
|
|
612
613
|
return match[0];
|
|
613
614
|
} else {
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artilleryio/int-commons",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-5b10fdf",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"async": "^2.6.4",
|
|
@@ -10,5 +10,9 @@
|
|
|
10
10
|
"espree": "^9.4.1",
|
|
11
11
|
"jsonpath-plus": "^7.2.0",
|
|
12
12
|
"lodash": "^4.17.19"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"lint": "eslint --ext \".js,.ts,.tsx\" .",
|
|
16
|
+
"lint-fix": "npm run lint -- --fix"
|
|
13
17
|
}
|
|
14
|
-
}
|
|
18
|
+
}
|