Skip to content

Commit 2eb5714

Browse files
committed
set source when parsing
1 parent b954d5f commit 2eb5714

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/parser/parser_lib.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export class Parser<T> {
6868
}
6969
generateParser(): (source: string) => ArrayResult<T> {
7070
return (input) => {
71+
source = input;
7172
clearCache();
7273
return this.rawParser({ source: input, position: 0 })
7374
.map(({ value }) => value);

0 commit comments

Comments
 (0)