Previously we were doctoring the regex in an interesting way that wouldn't have worked with | (regex or). Since as ^^ still matches the start of the string, we don't need to strip it out. Finally, to make sure that regex or can't scupper things, we need to wrap everything in a non-capturing group...
History
1 round
0 comments
a.starrysky.fyi
submitted
#0
1 commit
expand
collapse
fix(m): correct start/end requirements
Previously we were doctoring the regex in an interesting way that
wouldn't have worked with | (regex or). Since as ^^ still matches the
start of the string, we don't need to strip it out. Finally, to make
sure that regex or can't scupper things, we need to wrap everything in a
non-capturing group...
expand 0 comments
closed without merging