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.umd.js
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
|
|
@@ -1470,7 +1470,7 @@
|
|
|
1470
1470
|
if (!this.hasMatch) {
|
|
1471
1471
|
throw new RE2JSGroupException('perhaps no match attempted');
|
|
1472
1472
|
}
|
|
1473
|
-
const result =
|
|
1473
|
+
const result = Object.create(null);
|
|
1474
1474
|
for (const name of Object.keys(this.namedGroups)) {
|
|
1475
1475
|
result[name] = this.group(name);
|
|
1476
1476
|
}
|