re2js 2.1.0 → 2.1.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.
- package/build/index.cjs.cjs +2 -2
- package/build/index.cjs.cjs.map +1 -1
- package/build/index.esm.js +2 -2
- package/build/index.esm.js.map +1 -1
- package/build/index.umd.js +2 -2
- package/build/index.umd.js.map +1 -1
- package/package.json +1 -1
package/build/index.cjs.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* re2js
|
|
3
3
|
* RE2JS is the JavaScript port of RE2, a regular expression engine that provides linear time matching
|
|
4
4
|
*
|
|
5
|
-
* @version v2.1.
|
|
5
|
+
* @version v2.1.1
|
|
6
6
|
* @author Alexey Vasiliev
|
|
7
7
|
* @homepage https://github.com/le0pard/re2js#readme
|
|
8
8
|
* @repository github:le0pard/re2js
|
|
@@ -1466,7 +1466,7 @@ class Matcher {
|
|
|
1466
1466
|
if (!this.hasMatch) {
|
|
1467
1467
|
throw new RE2JSGroupException('perhaps no match attempted');
|
|
1468
1468
|
}
|
|
1469
|
-
const result =
|
|
1469
|
+
const result = Object.create(null);
|
|
1470
1470
|
for (const name of Object.keys(this.namedGroups)) {
|
|
1471
1471
|
result[name] = this.group(name);
|
|
1472
1472
|
}
|