re2js 1.3.1 → 1.3.2

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.2
6
6
  * @author Alexey Vasiliev
7
7
  * @homepage https://github.com/le0pard/re2js#readme
8
8
  * @repository github:le0pard/re2js
@@ -6253,7 +6253,7 @@ class RE2JS {
6253
6253
  * @throws RE2JSSyntaxException if the regular expression is malformed
6254
6254
  */
6255
6255
  static matches(regex, input) {
6256
- return RE2JS.compile(regex).matcher(input).matches();
6256
+ return RE2JS.compile(regex).testExact(input);
6257
6257
  }
6258
6258
 
6259
6259
  /**
@@ -6319,7 +6319,7 @@ class RE2JS {
6319
6319
  * @returns {boolean} true if the regular expression matches the entire input
6320
6320
  */
6321
6321
  matches(input) {
6322
- return this.matcher(input).matches();
6322
+ return this.testExact(input);
6323
6323
  }
6324
6324
 
6325
6325
  /**