re2js 1.3.1 → 1.3.3

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 v1.3.1
5
+ * @version v1.3.3
6
6
  * @author Alexey Vasiliev
7
7
  * @homepage https://github.com/le0pard/re2js#readme
8
8
  * @repository github:le0pard/re2js
@@ -1138,7 +1138,7 @@
1138
1138
  }
1139
1139
  return str.split('').map(s => {
1140
1140
  const c = s.codePointAt(0);
1141
- if (c === Codepoint.CODES['\\'] || c === Codepoint.CODES['$']) {
1141
+ if (c === Codepoint.CODES.get('\\') || c === Codepoint.CODES.get('$')) {
1142
1142
  return `\\${s}`;
1143
1143
  }
1144
1144
  return s;
@@ -6259,7 +6259,7 @@
6259
6259
  * @throws RE2JSSyntaxException if the regular expression is malformed
6260
6260
  */
6261
6261
  static matches(regex, input) {
6262
- return RE2JS.compile(regex).matcher(input).matches();
6262
+ return RE2JS.compile(regex).testExact(input);
6263
6263
  }
6264
6264
 
6265
6265
  /**
@@ -6325,7 +6325,7 @@
6325
6325
  * @returns {boolean} true if the regular expression matches the entire input
6326
6326
  */
6327
6327
  matches(input) {
6328
- return this.matcher(input).matches();
6328
+ return this.testExact(input);
6329
6329
  }
6330
6330
 
6331
6331
  /**