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.
@@ -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.0
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
@@ -1464,7 +1464,7 @@ class Matcher {
1464
1464
  if (!this.hasMatch) {
1465
1465
  throw new RE2JSGroupException('perhaps no match attempted');
1466
1466
  }
1467
- const result = {};
1467
+ const result = Object.create(null);
1468
1468
  for (const name of Object.keys(this.namedGroups)) {
1469
1469
  result[name] = this.group(name);
1470
1470
  }