rregex 1.1.2 → 1.3.0
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/lib/browser.d.ts +18 -20
- package/lib/browser.js +1 -1
- package/lib/commonjs.d.ts +18 -20
- package/lib/commonjs.js +1 -1
- package/lib/module.d.ts +18 -20
- package/lib/rregex.wasm +0 -0
- package/lib/types.d.ts +18 -20
- package/package.json +11 -1
package/README.md
CHANGED
|
@@ -209,7 +209,7 @@ Returns the same as shortest_match, but starts the search at the given offset. (
|
|
|
209
209
|
|
|
210
210
|
## Known Issues
|
|
211
211
|
|
|
212
|
-
If you call `splitn(text, limit)` and the expected result length is equal to `limit - 1` the result will include an extra item `""`, this behavior does not happen if `limit` es greater.
|
|
212
|
+
If you call `splitn(text, limit)` and the expected result length is equal to `limit - 1` the result will include an extra item `""`, this behavior does not happen if `limit` es greater. **`fixed at >=1.3`**
|
|
213
213
|
|
|
214
214
|
```ts
|
|
215
215
|
const regex = new RRegex(',')
|
package/lib/browser.d.ts
CHANGED
|
@@ -9,9 +9,7 @@ export function escape(text: string): string;
|
|
|
9
9
|
export type Hir = {
|
|
10
10
|
'@type': 'struct'
|
|
11
11
|
'@name': 'regex_syntax::hir::Hir'
|
|
12
|
-
|
|
13
|
-
italic: boolean;
|
|
14
|
-
size: number;
|
|
12
|
+
kind: HirKind
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
|
|
@@ -37,56 +35,56 @@ export type HirKindLiteralVariant = {
|
|
|
37
35
|
'@type': 'struct'
|
|
38
36
|
'@name': 'regex_syntax::hir::HirKind'
|
|
39
37
|
'@variant': 'Literal'
|
|
40
|
-
'
|
|
38
|
+
'@values': [Literal]
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
export type HirKindClassVariant = {
|
|
44
42
|
'@type': 'struct'
|
|
45
43
|
'@name': 'regex_syntax::hir::HirKind'
|
|
46
44
|
'@variant': 'Class'
|
|
47
|
-
'
|
|
45
|
+
'@values': [Class]
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
export type HirKindAnchorVariant = {
|
|
51
49
|
'@type': 'struct'
|
|
52
50
|
'@name': 'regex_syntax::hir::HirKind'
|
|
53
51
|
'@variant': 'Anchor'
|
|
54
|
-
'
|
|
52
|
+
'@values': [Anchor]
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
export type HirKindWordBoundaryVariant = {
|
|
58
56
|
'@type': 'struct'
|
|
59
57
|
'@name': 'regex_syntax::hir::HirKind'
|
|
60
58
|
'@variant': 'WordBoundary'
|
|
61
|
-
'
|
|
59
|
+
'@values': [WordBoundary]
|
|
62
60
|
}
|
|
63
61
|
|
|
64
62
|
export type HirKindRepetitionVariant = {
|
|
65
63
|
'@type': 'struct'
|
|
66
64
|
'@name': 'regex_syntax::hir::HirKind'
|
|
67
65
|
'@variant': 'Repetition'
|
|
68
|
-
'
|
|
66
|
+
'@values': [Repetition]
|
|
69
67
|
}
|
|
70
68
|
|
|
71
69
|
export type HirKindGroupVariant = {
|
|
72
70
|
'@type': 'struct'
|
|
73
71
|
'@name': 'regex_syntax::hir::HirKind'
|
|
74
72
|
'@variant': 'Group'
|
|
75
|
-
'
|
|
73
|
+
'@values': [Group]
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
export type HirKindConcatVariant = {
|
|
79
77
|
'@type': 'struct'
|
|
80
78
|
'@name': 'regex_syntax::hir::HirKind'
|
|
81
79
|
'@variant': 'Concat'
|
|
82
|
-
'
|
|
80
|
+
'@values': [Hir[]]
|
|
83
81
|
}
|
|
84
82
|
|
|
85
83
|
export type HirKindAlternationVariant = {
|
|
86
84
|
'@type': 'struct'
|
|
87
85
|
'@name': 'regex_syntax::hir::HirKind'
|
|
88
86
|
'@variant': 'Alternation'
|
|
89
|
-
'
|
|
87
|
+
'@values': [Hir[]]
|
|
90
88
|
}
|
|
91
89
|
|
|
92
90
|
|
|
@@ -99,14 +97,14 @@ export type LiteralUnicodeVariant = {
|
|
|
99
97
|
'@type': 'struct'
|
|
100
98
|
'@name': 'regex_syntax::hir::Literal'
|
|
101
99
|
'@variant': 'Unicode'
|
|
102
|
-
'
|
|
100
|
+
'@values': [string]
|
|
103
101
|
}
|
|
104
102
|
|
|
105
103
|
export type LiteralByteVariant = {
|
|
106
104
|
'@type': 'struct'
|
|
107
105
|
'@name': 'regex_syntax::hir::Literal'
|
|
108
106
|
'@variant': 'Byte'
|
|
109
|
-
'
|
|
107
|
+
'@values': [number]
|
|
110
108
|
}
|
|
111
109
|
|
|
112
110
|
|
|
@@ -119,14 +117,14 @@ export type ClassUnicodeVariant = {
|
|
|
119
117
|
'@type': 'struct'
|
|
120
118
|
'@name': 'regex_syntax::hir::Class'
|
|
121
119
|
'@variant': 'Unicode'
|
|
122
|
-
'
|
|
120
|
+
'@values': [ClassUnicode]
|
|
123
121
|
}
|
|
124
122
|
|
|
125
123
|
export type ClassByteVariant = {
|
|
126
124
|
'@type': 'struct'
|
|
127
125
|
'@name': 'regex_syntax::hir::Class'
|
|
128
126
|
'@variant': 'Bytes'
|
|
129
|
-
'
|
|
127
|
+
'@values': [ClassBytes]
|
|
130
128
|
}
|
|
131
129
|
|
|
132
130
|
|
|
@@ -267,7 +265,7 @@ export type RepetitionKindRangeVariant = {
|
|
|
267
265
|
'@type': 'struct'
|
|
268
266
|
'@name': 'regex_syntax::hir::Repetition'
|
|
269
267
|
'@variant': 'Range'
|
|
270
|
-
|
|
268
|
+
'@values': [RepetitionRange]
|
|
271
269
|
}
|
|
272
270
|
|
|
273
271
|
|
|
@@ -281,21 +279,21 @@ export type RepetitionRangeExactlyVariant = {
|
|
|
281
279
|
'@type': 'struct'
|
|
282
280
|
'@name': 'regex_syntax::hir::RepetitionRange'
|
|
283
281
|
'@variant': 'Exactly'
|
|
284
|
-
|
|
282
|
+
'@values': [number]
|
|
285
283
|
}
|
|
286
284
|
|
|
287
285
|
export type RepetitionRangeAtLeastVariant = {
|
|
288
286
|
'@type': 'struct'
|
|
289
287
|
'@name': 'regex_syntax::hir::RepetitionRange'
|
|
290
288
|
'@variant': 'AtLeast'
|
|
291
|
-
|
|
289
|
+
'@values': [number]
|
|
292
290
|
}
|
|
293
291
|
|
|
294
292
|
export type RepetitionRangeBoundedVariant = {
|
|
295
293
|
'@type': 'struct'
|
|
296
294
|
'@name': 'regex_syntax::hir::RepetitionRange'
|
|
297
295
|
'@variant': 'Bounded'
|
|
298
|
-
|
|
296
|
+
'@values': [number, number]
|
|
299
297
|
}
|
|
300
298
|
|
|
301
299
|
|
|
@@ -551,6 +549,6 @@ export const metadata: {
|
|
|
551
549
|
],
|
|
552
550
|
"homepage": "https://2fd.github.io/rregex",
|
|
553
551
|
"repository": "https://github.com/2fd/rregex",
|
|
554
|
-
"regex": "1.
|
|
552
|
+
"regex": "1.3.9",
|
|
555
553
|
"regex-syntax": "0.6.25"
|
|
556
554
|
}
|
package/lib/browser.js
CHANGED
package/lib/commonjs.d.ts
CHANGED
|
@@ -9,9 +9,7 @@ export function escape(text: string): string;
|
|
|
9
9
|
export type Hir = {
|
|
10
10
|
'@type': 'struct'
|
|
11
11
|
'@name': 'regex_syntax::hir::Hir'
|
|
12
|
-
|
|
13
|
-
italic: boolean;
|
|
14
|
-
size: number;
|
|
12
|
+
kind: HirKind
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
|
|
@@ -37,56 +35,56 @@ export type HirKindLiteralVariant = {
|
|
|
37
35
|
'@type': 'struct'
|
|
38
36
|
'@name': 'regex_syntax::hir::HirKind'
|
|
39
37
|
'@variant': 'Literal'
|
|
40
|
-
'
|
|
38
|
+
'@values': [Literal]
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
export type HirKindClassVariant = {
|
|
44
42
|
'@type': 'struct'
|
|
45
43
|
'@name': 'regex_syntax::hir::HirKind'
|
|
46
44
|
'@variant': 'Class'
|
|
47
|
-
'
|
|
45
|
+
'@values': [Class]
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
export type HirKindAnchorVariant = {
|
|
51
49
|
'@type': 'struct'
|
|
52
50
|
'@name': 'regex_syntax::hir::HirKind'
|
|
53
51
|
'@variant': 'Anchor'
|
|
54
|
-
'
|
|
52
|
+
'@values': [Anchor]
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
export type HirKindWordBoundaryVariant = {
|
|
58
56
|
'@type': 'struct'
|
|
59
57
|
'@name': 'regex_syntax::hir::HirKind'
|
|
60
58
|
'@variant': 'WordBoundary'
|
|
61
|
-
'
|
|
59
|
+
'@values': [WordBoundary]
|
|
62
60
|
}
|
|
63
61
|
|
|
64
62
|
export type HirKindRepetitionVariant = {
|
|
65
63
|
'@type': 'struct'
|
|
66
64
|
'@name': 'regex_syntax::hir::HirKind'
|
|
67
65
|
'@variant': 'Repetition'
|
|
68
|
-
'
|
|
66
|
+
'@values': [Repetition]
|
|
69
67
|
}
|
|
70
68
|
|
|
71
69
|
export type HirKindGroupVariant = {
|
|
72
70
|
'@type': 'struct'
|
|
73
71
|
'@name': 'regex_syntax::hir::HirKind'
|
|
74
72
|
'@variant': 'Group'
|
|
75
|
-
'
|
|
73
|
+
'@values': [Group]
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
export type HirKindConcatVariant = {
|
|
79
77
|
'@type': 'struct'
|
|
80
78
|
'@name': 'regex_syntax::hir::HirKind'
|
|
81
79
|
'@variant': 'Concat'
|
|
82
|
-
'
|
|
80
|
+
'@values': [Hir[]]
|
|
83
81
|
}
|
|
84
82
|
|
|
85
83
|
export type HirKindAlternationVariant = {
|
|
86
84
|
'@type': 'struct'
|
|
87
85
|
'@name': 'regex_syntax::hir::HirKind'
|
|
88
86
|
'@variant': 'Alternation'
|
|
89
|
-
'
|
|
87
|
+
'@values': [Hir[]]
|
|
90
88
|
}
|
|
91
89
|
|
|
92
90
|
|
|
@@ -99,14 +97,14 @@ export type LiteralUnicodeVariant = {
|
|
|
99
97
|
'@type': 'struct'
|
|
100
98
|
'@name': 'regex_syntax::hir::Literal'
|
|
101
99
|
'@variant': 'Unicode'
|
|
102
|
-
'
|
|
100
|
+
'@values': [string]
|
|
103
101
|
}
|
|
104
102
|
|
|
105
103
|
export type LiteralByteVariant = {
|
|
106
104
|
'@type': 'struct'
|
|
107
105
|
'@name': 'regex_syntax::hir::Literal'
|
|
108
106
|
'@variant': 'Byte'
|
|
109
|
-
'
|
|
107
|
+
'@values': [number]
|
|
110
108
|
}
|
|
111
109
|
|
|
112
110
|
|
|
@@ -119,14 +117,14 @@ export type ClassUnicodeVariant = {
|
|
|
119
117
|
'@type': 'struct'
|
|
120
118
|
'@name': 'regex_syntax::hir::Class'
|
|
121
119
|
'@variant': 'Unicode'
|
|
122
|
-
'
|
|
120
|
+
'@values': [ClassUnicode]
|
|
123
121
|
}
|
|
124
122
|
|
|
125
123
|
export type ClassByteVariant = {
|
|
126
124
|
'@type': 'struct'
|
|
127
125
|
'@name': 'regex_syntax::hir::Class'
|
|
128
126
|
'@variant': 'Bytes'
|
|
129
|
-
'
|
|
127
|
+
'@values': [ClassBytes]
|
|
130
128
|
}
|
|
131
129
|
|
|
132
130
|
|
|
@@ -267,7 +265,7 @@ export type RepetitionKindRangeVariant = {
|
|
|
267
265
|
'@type': 'struct'
|
|
268
266
|
'@name': 'regex_syntax::hir::Repetition'
|
|
269
267
|
'@variant': 'Range'
|
|
270
|
-
|
|
268
|
+
'@values': [RepetitionRange]
|
|
271
269
|
}
|
|
272
270
|
|
|
273
271
|
|
|
@@ -281,21 +279,21 @@ export type RepetitionRangeExactlyVariant = {
|
|
|
281
279
|
'@type': 'struct'
|
|
282
280
|
'@name': 'regex_syntax::hir::RepetitionRange'
|
|
283
281
|
'@variant': 'Exactly'
|
|
284
|
-
|
|
282
|
+
'@values': [number]
|
|
285
283
|
}
|
|
286
284
|
|
|
287
285
|
export type RepetitionRangeAtLeastVariant = {
|
|
288
286
|
'@type': 'struct'
|
|
289
287
|
'@name': 'regex_syntax::hir::RepetitionRange'
|
|
290
288
|
'@variant': 'AtLeast'
|
|
291
|
-
|
|
289
|
+
'@values': [number]
|
|
292
290
|
}
|
|
293
291
|
|
|
294
292
|
export type RepetitionRangeBoundedVariant = {
|
|
295
293
|
'@type': 'struct'
|
|
296
294
|
'@name': 'regex_syntax::hir::RepetitionRange'
|
|
297
295
|
'@variant': 'Bounded'
|
|
298
|
-
|
|
296
|
+
'@values': [number, number]
|
|
299
297
|
}
|
|
300
298
|
|
|
301
299
|
|
|
@@ -509,6 +507,6 @@ export const metadata: {
|
|
|
509
507
|
],
|
|
510
508
|
"homepage": "https://2fd.github.io/rregex",
|
|
511
509
|
"repository": "https://github.com/2fd/rregex",
|
|
512
|
-
"regex": "1.
|
|
510
|
+
"regex": "1.3.9",
|
|
513
511
|
"regex-syntax": "0.6.25"
|
|
514
512
|
}
|
package/lib/commonjs.js
CHANGED
package/lib/module.d.ts
CHANGED
|
@@ -9,9 +9,7 @@ export function escape(text: string): string;
|
|
|
9
9
|
export type Hir = {
|
|
10
10
|
'@type': 'struct'
|
|
11
11
|
'@name': 'regex_syntax::hir::Hir'
|
|
12
|
-
|
|
13
|
-
italic: boolean;
|
|
14
|
-
size: number;
|
|
12
|
+
kind: HirKind
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
|
|
@@ -37,56 +35,56 @@ export type HirKindLiteralVariant = {
|
|
|
37
35
|
'@type': 'struct'
|
|
38
36
|
'@name': 'regex_syntax::hir::HirKind'
|
|
39
37
|
'@variant': 'Literal'
|
|
40
|
-
'
|
|
38
|
+
'@values': [Literal]
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
export type HirKindClassVariant = {
|
|
44
42
|
'@type': 'struct'
|
|
45
43
|
'@name': 'regex_syntax::hir::HirKind'
|
|
46
44
|
'@variant': 'Class'
|
|
47
|
-
'
|
|
45
|
+
'@values': [Class]
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
export type HirKindAnchorVariant = {
|
|
51
49
|
'@type': 'struct'
|
|
52
50
|
'@name': 'regex_syntax::hir::HirKind'
|
|
53
51
|
'@variant': 'Anchor'
|
|
54
|
-
'
|
|
52
|
+
'@values': [Anchor]
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
export type HirKindWordBoundaryVariant = {
|
|
58
56
|
'@type': 'struct'
|
|
59
57
|
'@name': 'regex_syntax::hir::HirKind'
|
|
60
58
|
'@variant': 'WordBoundary'
|
|
61
|
-
'
|
|
59
|
+
'@values': [WordBoundary]
|
|
62
60
|
}
|
|
63
61
|
|
|
64
62
|
export type HirKindRepetitionVariant = {
|
|
65
63
|
'@type': 'struct'
|
|
66
64
|
'@name': 'regex_syntax::hir::HirKind'
|
|
67
65
|
'@variant': 'Repetition'
|
|
68
|
-
'
|
|
66
|
+
'@values': [Repetition]
|
|
69
67
|
}
|
|
70
68
|
|
|
71
69
|
export type HirKindGroupVariant = {
|
|
72
70
|
'@type': 'struct'
|
|
73
71
|
'@name': 'regex_syntax::hir::HirKind'
|
|
74
72
|
'@variant': 'Group'
|
|
75
|
-
'
|
|
73
|
+
'@values': [Group]
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
export type HirKindConcatVariant = {
|
|
79
77
|
'@type': 'struct'
|
|
80
78
|
'@name': 'regex_syntax::hir::HirKind'
|
|
81
79
|
'@variant': 'Concat'
|
|
82
|
-
'
|
|
80
|
+
'@values': [Hir[]]
|
|
83
81
|
}
|
|
84
82
|
|
|
85
83
|
export type HirKindAlternationVariant = {
|
|
86
84
|
'@type': 'struct'
|
|
87
85
|
'@name': 'regex_syntax::hir::HirKind'
|
|
88
86
|
'@variant': 'Alternation'
|
|
89
|
-
'
|
|
87
|
+
'@values': [Hir[]]
|
|
90
88
|
}
|
|
91
89
|
|
|
92
90
|
|
|
@@ -99,14 +97,14 @@ export type LiteralUnicodeVariant = {
|
|
|
99
97
|
'@type': 'struct'
|
|
100
98
|
'@name': 'regex_syntax::hir::Literal'
|
|
101
99
|
'@variant': 'Unicode'
|
|
102
|
-
'
|
|
100
|
+
'@values': [string]
|
|
103
101
|
}
|
|
104
102
|
|
|
105
103
|
export type LiteralByteVariant = {
|
|
106
104
|
'@type': 'struct'
|
|
107
105
|
'@name': 'regex_syntax::hir::Literal'
|
|
108
106
|
'@variant': 'Byte'
|
|
109
|
-
'
|
|
107
|
+
'@values': [number]
|
|
110
108
|
}
|
|
111
109
|
|
|
112
110
|
|
|
@@ -119,14 +117,14 @@ export type ClassUnicodeVariant = {
|
|
|
119
117
|
'@type': 'struct'
|
|
120
118
|
'@name': 'regex_syntax::hir::Class'
|
|
121
119
|
'@variant': 'Unicode'
|
|
122
|
-
'
|
|
120
|
+
'@values': [ClassUnicode]
|
|
123
121
|
}
|
|
124
122
|
|
|
125
123
|
export type ClassByteVariant = {
|
|
126
124
|
'@type': 'struct'
|
|
127
125
|
'@name': 'regex_syntax::hir::Class'
|
|
128
126
|
'@variant': 'Bytes'
|
|
129
|
-
'
|
|
127
|
+
'@values': [ClassBytes]
|
|
130
128
|
}
|
|
131
129
|
|
|
132
130
|
|
|
@@ -267,7 +265,7 @@ export type RepetitionKindRangeVariant = {
|
|
|
267
265
|
'@type': 'struct'
|
|
268
266
|
'@name': 'regex_syntax::hir::Repetition'
|
|
269
267
|
'@variant': 'Range'
|
|
270
|
-
|
|
268
|
+
'@values': [RepetitionRange]
|
|
271
269
|
}
|
|
272
270
|
|
|
273
271
|
|
|
@@ -281,21 +279,21 @@ export type RepetitionRangeExactlyVariant = {
|
|
|
281
279
|
'@type': 'struct'
|
|
282
280
|
'@name': 'regex_syntax::hir::RepetitionRange'
|
|
283
281
|
'@variant': 'Exactly'
|
|
284
|
-
|
|
282
|
+
'@values': [number]
|
|
285
283
|
}
|
|
286
284
|
|
|
287
285
|
export type RepetitionRangeAtLeastVariant = {
|
|
288
286
|
'@type': 'struct'
|
|
289
287
|
'@name': 'regex_syntax::hir::RepetitionRange'
|
|
290
288
|
'@variant': 'AtLeast'
|
|
291
|
-
|
|
289
|
+
'@values': [number]
|
|
292
290
|
}
|
|
293
291
|
|
|
294
292
|
export type RepetitionRangeBoundedVariant = {
|
|
295
293
|
'@type': 'struct'
|
|
296
294
|
'@name': 'regex_syntax::hir::RepetitionRange'
|
|
297
295
|
'@variant': 'Bounded'
|
|
298
|
-
|
|
296
|
+
'@values': [number, number]
|
|
299
297
|
}
|
|
300
298
|
|
|
301
299
|
|
|
@@ -509,6 +507,6 @@ export const metadata: {
|
|
|
509
507
|
],
|
|
510
508
|
"homepage": "https://2fd.github.io/rregex",
|
|
511
509
|
"repository": "https://github.com/2fd/rregex",
|
|
512
|
-
"regex": "1.
|
|
510
|
+
"regex": "1.3.9",
|
|
513
511
|
"regex-syntax": "0.6.25"
|
|
514
512
|
}
|
package/lib/rregex.wasm
CHANGED
|
Binary file
|
package/lib/types.d.ts
CHANGED
|
@@ -9,9 +9,7 @@ export function escape(text: string): string;
|
|
|
9
9
|
export type Hir = {
|
|
10
10
|
'@type': 'struct'
|
|
11
11
|
'@name': 'regex_syntax::hir::Hir'
|
|
12
|
-
|
|
13
|
-
italic: boolean;
|
|
14
|
-
size: number;
|
|
12
|
+
kind: HirKind
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
|
|
@@ -37,56 +35,56 @@ export type HirKindLiteralVariant = {
|
|
|
37
35
|
'@type': 'struct'
|
|
38
36
|
'@name': 'regex_syntax::hir::HirKind'
|
|
39
37
|
'@variant': 'Literal'
|
|
40
|
-
'
|
|
38
|
+
'@values': [Literal]
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
export type HirKindClassVariant = {
|
|
44
42
|
'@type': 'struct'
|
|
45
43
|
'@name': 'regex_syntax::hir::HirKind'
|
|
46
44
|
'@variant': 'Class'
|
|
47
|
-
'
|
|
45
|
+
'@values': [Class]
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
export type HirKindAnchorVariant = {
|
|
51
49
|
'@type': 'struct'
|
|
52
50
|
'@name': 'regex_syntax::hir::HirKind'
|
|
53
51
|
'@variant': 'Anchor'
|
|
54
|
-
'
|
|
52
|
+
'@values': [Anchor]
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
export type HirKindWordBoundaryVariant = {
|
|
58
56
|
'@type': 'struct'
|
|
59
57
|
'@name': 'regex_syntax::hir::HirKind'
|
|
60
58
|
'@variant': 'WordBoundary'
|
|
61
|
-
'
|
|
59
|
+
'@values': [WordBoundary]
|
|
62
60
|
}
|
|
63
61
|
|
|
64
62
|
export type HirKindRepetitionVariant = {
|
|
65
63
|
'@type': 'struct'
|
|
66
64
|
'@name': 'regex_syntax::hir::HirKind'
|
|
67
65
|
'@variant': 'Repetition'
|
|
68
|
-
'
|
|
66
|
+
'@values': [Repetition]
|
|
69
67
|
}
|
|
70
68
|
|
|
71
69
|
export type HirKindGroupVariant = {
|
|
72
70
|
'@type': 'struct'
|
|
73
71
|
'@name': 'regex_syntax::hir::HirKind'
|
|
74
72
|
'@variant': 'Group'
|
|
75
|
-
'
|
|
73
|
+
'@values': [Group]
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
export type HirKindConcatVariant = {
|
|
79
77
|
'@type': 'struct'
|
|
80
78
|
'@name': 'regex_syntax::hir::HirKind'
|
|
81
79
|
'@variant': 'Concat'
|
|
82
|
-
'
|
|
80
|
+
'@values': [Hir[]]
|
|
83
81
|
}
|
|
84
82
|
|
|
85
83
|
export type HirKindAlternationVariant = {
|
|
86
84
|
'@type': 'struct'
|
|
87
85
|
'@name': 'regex_syntax::hir::HirKind'
|
|
88
86
|
'@variant': 'Alternation'
|
|
89
|
-
'
|
|
87
|
+
'@values': [Hir[]]
|
|
90
88
|
}
|
|
91
89
|
|
|
92
90
|
|
|
@@ -99,14 +97,14 @@ export type LiteralUnicodeVariant = {
|
|
|
99
97
|
'@type': 'struct'
|
|
100
98
|
'@name': 'regex_syntax::hir::Literal'
|
|
101
99
|
'@variant': 'Unicode'
|
|
102
|
-
'
|
|
100
|
+
'@values': [string]
|
|
103
101
|
}
|
|
104
102
|
|
|
105
103
|
export type LiteralByteVariant = {
|
|
106
104
|
'@type': 'struct'
|
|
107
105
|
'@name': 'regex_syntax::hir::Literal'
|
|
108
106
|
'@variant': 'Byte'
|
|
109
|
-
'
|
|
107
|
+
'@values': [number]
|
|
110
108
|
}
|
|
111
109
|
|
|
112
110
|
|
|
@@ -119,14 +117,14 @@ export type ClassUnicodeVariant = {
|
|
|
119
117
|
'@type': 'struct'
|
|
120
118
|
'@name': 'regex_syntax::hir::Class'
|
|
121
119
|
'@variant': 'Unicode'
|
|
122
|
-
'
|
|
120
|
+
'@values': [ClassUnicode]
|
|
123
121
|
}
|
|
124
122
|
|
|
125
123
|
export type ClassByteVariant = {
|
|
126
124
|
'@type': 'struct'
|
|
127
125
|
'@name': 'regex_syntax::hir::Class'
|
|
128
126
|
'@variant': 'Bytes'
|
|
129
|
-
'
|
|
127
|
+
'@values': [ClassBytes]
|
|
130
128
|
}
|
|
131
129
|
|
|
132
130
|
|
|
@@ -267,7 +265,7 @@ export type RepetitionKindRangeVariant = {
|
|
|
267
265
|
'@type': 'struct'
|
|
268
266
|
'@name': 'regex_syntax::hir::Repetition'
|
|
269
267
|
'@variant': 'Range'
|
|
270
|
-
|
|
268
|
+
'@values': [RepetitionRange]
|
|
271
269
|
}
|
|
272
270
|
|
|
273
271
|
|
|
@@ -281,21 +279,21 @@ export type RepetitionRangeExactlyVariant = {
|
|
|
281
279
|
'@type': 'struct'
|
|
282
280
|
'@name': 'regex_syntax::hir::RepetitionRange'
|
|
283
281
|
'@variant': 'Exactly'
|
|
284
|
-
|
|
282
|
+
'@values': [number]
|
|
285
283
|
}
|
|
286
284
|
|
|
287
285
|
export type RepetitionRangeAtLeastVariant = {
|
|
288
286
|
'@type': 'struct'
|
|
289
287
|
'@name': 'regex_syntax::hir::RepetitionRange'
|
|
290
288
|
'@variant': 'AtLeast'
|
|
291
|
-
|
|
289
|
+
'@values': [number]
|
|
292
290
|
}
|
|
293
291
|
|
|
294
292
|
export type RepetitionRangeBoundedVariant = {
|
|
295
293
|
'@type': 'struct'
|
|
296
294
|
'@name': 'regex_syntax::hir::RepetitionRange'
|
|
297
295
|
'@variant': 'Bounded'
|
|
298
|
-
|
|
296
|
+
'@values': [number, number]
|
|
299
297
|
}
|
|
300
298
|
|
|
301
299
|
|
|
@@ -551,6 +549,6 @@ export const metadata: {
|
|
|
551
549
|
],
|
|
552
550
|
"homepage": "https://2fd.github.io/rregex",
|
|
553
551
|
"repository": "https://github.com/2fd/rregex",
|
|
554
|
-
"regex": "1.
|
|
552
|
+
"regex": "1.3.9",
|
|
555
553
|
"regex-syntax": "0.6.25"
|
|
556
554
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rregex",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Rust Regex binding for Javascript",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./lib/commonjs.js",
|
|
@@ -40,6 +40,16 @@
|
|
|
40
40
|
"range": "1.1.x",
|
|
41
41
|
"channel": "1.1.x"
|
|
42
42
|
},
|
|
43
|
+
{
|
|
44
|
+
"name": "1.2.x",
|
|
45
|
+
"range": "1.2.x",
|
|
46
|
+
"channel": "1.2.x"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "1.3.x",
|
|
50
|
+
"range": "1.3.x",
|
|
51
|
+
"channel": "1.3.x"
|
|
52
|
+
},
|
|
43
53
|
{
|
|
44
54
|
"name": "master"
|
|
45
55
|
}
|