Closed BakerNet closed 2 weeks ago
Summary
Regexs like /^a|b|c$/ match a at start of text, c at end of text, or b. I assume this does not match the original intent.
/^a|b|c$/
a
c
b
This moves the union into a capture group so ^ and $ are respected for the whole union and not just a couple members of the union.
^
$
What kind of change does this PR introduce? (check at least one)
If changing the UI of the default theme, please provide the before/after screenshot:
Does this PR introduce a breaking change? (check one)
If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:
fix #xxx[,#xxx]
You have tested in the following browsers: (Providing a detailed version will be better.)
If adding a new feature, the PR's description includes:
To avoid wasting your time, it's best to open a feature request issue first and wait for approval before working on it.
Other information:
Summary
Regexs like
/^a|b|c$/
matcha
at start of text,c
at end of text, orb
. I assume this does not match the original intent.This moves the union into a capture group so
^
and$
are respected for the whole union and not just a couple members of the union.What kind of change does this PR introduce? (check at least one)
If changing the UI of the default theme, please provide the before/after screenshot:
Does this PR introduce a breaking change? (check one)
If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:
fix #xxx[,#xxx]
, where "xxx" is the issue number)You have tested in the following browsers: (Providing a detailed version will be better.)
If adding a new feature, the PR's description includes:
To avoid wasting your time, it's best to open a feature request issue first and wait for approval before working on it.
Other information: