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 +1 -1
- package/build/index.cjs.cjs +4 -6
- package/build/index.cjs.cjs.map +1 -1
- package/build/index.esm.d.ts +7 -7
- package/build/index.esm.d.ts.map +1 -1
- package/build/index.esm.js +4 -6
- package/build/index.esm.js.map +1 -1
- package/build/index.umd.js +4 -6
- package/build/index.umd.js.map +1 -1
- package/package.json +21 -19
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 v1.2.
|
|
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
|
|
@@ -1029,7 +1029,7 @@
|
|
|
1029
1029
|
* Returns the start of the named group of the most recent match, or -1 if the group was not
|
|
1030
1030
|
* matched.
|
|
1031
1031
|
* @param {string|number} [group=0]
|
|
1032
|
-
* @returns {
|
|
1032
|
+
* @returns {number}
|
|
1033
1033
|
*/
|
|
1034
1034
|
start(group = 0) {
|
|
1035
1035
|
if (typeof group === 'string') {
|
|
@@ -1047,7 +1047,7 @@
|
|
|
1047
1047
|
* Returns the end of the named group of the most recent match, or -1 if the group was not
|
|
1048
1048
|
* matched.
|
|
1049
1049
|
* @param {string|number} [group=0]
|
|
1050
|
-
* @returns {
|
|
1050
|
+
* @returns {number}
|
|
1051
1051
|
*/
|
|
1052
1052
|
end(group = 0) {
|
|
1053
1053
|
if (typeof group === 'string') {
|
|
@@ -1078,7 +1078,7 @@
|
|
|
1078
1078
|
/**
|
|
1079
1079
|
* Returns the named group of the most recent match, or {@code null} if the group was not matched.
|
|
1080
1080
|
* @param {string|number} [group=0]
|
|
1081
|
-
* @returns {string}
|
|
1081
|
+
* @returns {?string}
|
|
1082
1082
|
*/
|
|
1083
1083
|
group(group = 0) {
|
|
1084
1084
|
if (typeof group === 'string') {
|
|
@@ -1935,7 +1935,6 @@
|
|
|
1935
1935
|
} else {
|
|
1936
1936
|
flag = input.context(pos);
|
|
1937
1937
|
}
|
|
1938
|
-
// eslint-disable-next-line no-constant-condition
|
|
1939
1938
|
while (true) {
|
|
1940
1939
|
if (runq.isEmpty()) {
|
|
1941
1940
|
if ((startCond & Utils.EMPTY_BEGIN_TEXT) !== 0 && pos !== 0) {
|
|
@@ -3747,7 +3746,6 @@
|
|
|
3747
3746
|
if (c === Codepoint.CODES.get('{')) {
|
|
3748
3747
|
let nhex = 0;
|
|
3749
3748
|
let r = 0;
|
|
3750
|
-
// eslint-disable-next-line no-constant-condition
|
|
3751
3749
|
while (true) {
|
|
3752
3750
|
if (!t.more()) {
|
|
3753
3751
|
break bigswitch;
|