Skip to content

Commit c498e55

Browse files
committed
Fix: location of quantifier (fixes #3)
1 parent bb34da1 commit c498e55

File tree

6 files changed

+692
-692
lines changed

6 files changed

+692
-692
lines changed

src/parser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,9 @@ class RegExpParserState {
295295
const node: Quantifier = {
296296
type: "Quantifier",
297297
parent: parentNode,
298-
start,
298+
start: prevNode.start,
299299
end,
300-
raw: this.source.slice(start, end),
300+
raw: this.source.slice(prevNode.start, end),
301301
min,
302302
max,
303303
greedy,

0 commit comments

Comments
 (0)