Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nitely committed Jan 5, 2024
1 parent cef0ac4 commit 0ed1728
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/regex/exptransformation.nim
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,12 @@ func applyFlag(n: var Node, f: Flag) =
flagVerbose,
flagNotVerbose}

func applyFlags(exp: Exp, reflags: RegexFlags): Exp =
func applyFlags(exp: Exp, fls: RegexFlags): Exp =
## apply flags to each group
result.s = newSeq[Node](exp.s.len)
result.s.setLen 0
var flags = newSeq[seq[Flag]]()
if regexArbitraryBytes in reflags:
if regexArbitraryBytes in fls:
flags.add @[flagNotUnicode]
var sc = exp.s.scan()
for n in sc.mitems():
Expand Down

0 comments on commit 0ed1728

Please sign in to comment.