Closed sogaiu closed 3 years ago
I found the comment about repetitions in regex.janet to be confusing: https://github.com/janet-lang/spork/blob/6f8b5a8431dba7fa2df54e6be9eea42d9a4e97d6/spork/regex.janet#L13
regex.janet
I took the curly braces and number to refer to abc in abc{1}, but that does not seem to be correct:
abc
abc{1}
repl:2:> (regex/match "ab{2}" "abab") nil repl:3:> (regex/match "(ab){2}" "abab") @["ab" "ab"]
This PR is just a tweak so that instead of abc{1} or abc{1,3}, a{1} and a{1,3} are used instead.
abc{1,3}
a{1}
a{1,3}
I found the comment about repetitions in
regex.janet
to be confusing: https://github.com/janet-lang/spork/blob/6f8b5a8431dba7fa2df54e6be9eea42d9a4e97d6/spork/regex.janet#L13I took the curly braces and number to refer to
abc
inabc{1}
, but that does not seem to be correct:This PR is just a tweak so that instead of
abc{1}
orabc{1,3}
,a{1}
anda{1,3}
are used instead.