re2js 1.2.0 → 1.2.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.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # RE2JS is the JavaScript port of RE2, a regular expression engine that provides linear time matching
2
- [![Test/Build/Deploy](https://github.com/le0pard/re2js/actions/workflows/tests.yml/badge.svg)](https://github.com/le0pard/re2js/actions/workflows/tests.yml)
2
+ [![Test/Build/Publish](https://github.com/le0pard/re2js/actions/workflows/ci.yml/badge.svg)](https://github.com/le0pard/re2js/actions/workflows/ci.yml)
3
3
 
4
4
  ## [Playground](https://re2js.leopard.in.ua/)
5
5
 
@@ -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.2.0
5
+ * @version v1.2.2
6
6
  * @author Alexey Vasiliev
7
7
  * @homepage https://github.com/le0pard/re2js#readme
8
8
  * @repository github:le0pard/re2js
@@ -1025,7 +1025,7 @@ class Matcher {
1025
1025
  * Returns the start of the named group of the most recent match, or -1 if the group was not
1026
1026
  * matched.
1027
1027
  * @param {string|number} [group=0]
1028
- * @returns {string}
1028
+ * @returns {number}
1029
1029
  */
1030
1030
  start(group = 0) {
1031
1031
  if (typeof group === 'string') {
@@ -1043,7 +1043,7 @@ class Matcher {
1043
1043
  * Returns the end of the named group of the most recent match, or -1 if the group was not
1044
1044
  * matched.
1045
1045
  * @param {string|number} [group=0]
1046
- * @returns {string}
1046
+ * @returns {number}
1047
1047
  */
1048
1048
  end(group = 0) {
1049
1049
  if (typeof group === 'string') {
@@ -1074,7 +1074,7 @@ class Matcher {
1074
1074
  /**
1075
1075
  * Returns the named group of the most recent match, or {@code null} if the group was not matched.
1076
1076
  * @param {string|number} [group=0]
1077
- * @returns {string}
1077
+ * @returns {?string}
1078
1078
  */
1079
1079
  group(group = 0) {
1080
1080
  if (typeof group === 'string') {
@@ -1931,7 +1931,6 @@ class Machine {
1931
1931
  } else {
1932
1932
  flag = input.context(pos);
1933
1933
  }
1934
- // eslint-disable-next-line no-constant-condition
1935
1934
  while (true) {
1936
1935
  if (runq.isEmpty()) {
1937
1936
  if ((startCond & Utils.EMPTY_BEGIN_TEXT) !== 0 && pos !== 0) {
@@ -3743,7 +3742,6 @@ class Parser {
3743
3742
  if (c === Codepoint.CODES.get('{')) {
3744
3743
  let nhex = 0;
3745
3744
  let r = 0;
3746
- // eslint-disable-next-line no-constant-condition
3747
3745
  while (true) {
3748
3746
  if (!t.more()) {
3749
3747
  break bigswitch;