Skip to content

Commit

Permalink
fix(RegExpBuilder): ?:
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed May 27, 2023
1 parent db05dbf commit d532d53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/regexp/RegExpBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class RegExpBuilder {
}

build(options?: RegExpBuilderBuildOptions): RegExp {
let regExpSource = `(${this.options.baseRegExp.source})`
let regExpSource = `(?:${this.options.baseRegExp.source})`
if (options?.repeat) {
regExpSource = `${regExpSource}+`
}
Expand Down

0 comments on commit d532d53

Please sign in to comment.