clarity-pattern-parser 11.3.12 → 11.3.13
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/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/patterns/Repeat.d.ts +2 -2
- package/package.json +1 -1
- package/src/patterns/Repeat.ts +4 -4
|
@@ -33,8 +33,8 @@ export declare class Repeat implements Pattern {
|
|
|
33
33
|
get options(): InternalRepeatOptions;
|
|
34
34
|
constructor(name: string, pattern: Pattern, options?: RepeatOptions);
|
|
35
35
|
parse(cursor: Cursor): Node | null;
|
|
36
|
-
exec(text: string): ParseResult;
|
|
37
|
-
test(text: string): boolean;
|
|
36
|
+
exec(text: string, record?: boolean): ParseResult;
|
|
37
|
+
test(text: string, record?: boolean): boolean;
|
|
38
38
|
clone(name?: string): Repeat;
|
|
39
39
|
getTokens(): string[];
|
|
40
40
|
getTokensAfter(_childReference: Pattern): string[];
|
package/package.json
CHANGED
package/src/patterns/Repeat.ts
CHANGED
|
@@ -96,12 +96,12 @@ export class Repeat implements Pattern {
|
|
|
96
96
|
return this._repeatPattern.parse(cursor);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
exec(text: string): ParseResult {
|
|
100
|
-
return this._repeatPattern.exec(text);
|
|
99
|
+
exec(text: string, record = false): ParseResult {
|
|
100
|
+
return this._repeatPattern.exec(text, record);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
test(text: string): boolean {
|
|
104
|
-
return this._repeatPattern.test(text);
|
|
103
|
+
test(text: string, record = false): boolean {
|
|
104
|
+
return this._repeatPattern.test(text, record);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
clone(name = this.name) {
|