Skip to content

Commit bd4d338

Browse files
committed
fix splitIncl on older Nim
1 parent ddba950 commit bd4d338

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/regex.nim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2691,6 +2691,7 @@ proc splitIncl*(s: string, sep: Regex): seq[string] =
26912691
## doAssert splitIncl("a,b", re"(,)") ==
26922692
## @["a", ",", "b"]
26932693
##
2694+
result = @[]
26942695
var
26952696
m = RegexMatch()
26962697
ds = initDataSets(sep.states.len, true)

0 commit comments

Comments
 (0)