Skip to content

Commit

Permalink
refactor: Fix repetitive regex pattern in selectionRe
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Apr 2, 2024
1 parent 6e4df56 commit 896f588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ function type(): ast.TypeNode {
const selectionRe = new RegExp(
'(?:' +
// fragment spreads (FragmentSpread or InlineFragment nodes)
'(\\.\\.\\.)|' +
'(\\.{3})|' +
// field aliases or names (FieldNode)
'(' +
nameRe.source +
Expand Down

0 comments on commit 896f588

Please sign in to comment.