Skip to content

Commit

Permalink
fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
uzmoi committed Jan 16, 2024
1 parent 45bb850 commit bab5bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/s-expression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export const SExpression: Parser<SExpression, string> = choice([
.option()
.and(list)
.map(([quote, list]) => (quote ? ["quote", ...list] : list)),
regex(/"([^"]|\\.)*"/),
regex(/"([^"\\]|\\.)*"/),
regex(/[^\s()"]+/),
]).between(regex(/\s*/));

0 comments on commit bab5bcd

Please sign in to comment.