You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a bug in the common substring detection algorithm causing union operations to be applied where optionality expressions would be more appropriate. The resulting regex is not incorrect but more complex than necessary. Examples:
Test Cases
Expected
Actual
ac abc
^ab?c$
^a(bc|c)$
abc abxyc
^ab(xy)?c$
^ab(xyc|c)$
The text was updated successfully, but these errors were encountered:
There is a bug in the common substring detection algorithm causing union operations to be applied where optionality expressions would be more appropriate. The resulting regex is not incorrect but more complex than necessary. Examples:
ac abc
^ab?c$
^a(bc|c)$
abc abxyc
^ab(xy)?c$
^ab(xyc|c)$
The text was updated successfully, but these errors were encountered: