This website requires JavaScript.
Explore
Help
Sign In
xenia
/
home
Watch
1
Star
0
Fork
0
You've already forked home
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
dc1ee01c98
home
/
test
/
regression
/
4519-regex-alternation-priority
/
cmd
2 lines
25 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Fix regex alternation execution priority The ThreadedRegexVM implementation does not execute split opcodes as expected: on split the pending thread is pushed on top of the thread stack, which means that when multiple splits are executed in a row (such as with a disjunction with 3 or more branches) the last split target gets on top of the thread stack and gets executed next (when the thread from the first split target would be the expected one) Fixing this in the ThreadedRegexVM would have a performance impact as we would not be able to use a plain stack for current threads, so the best solution at the moment is to reverse the order of splits generated by a disjunction. Fixes #4519
2022-02-02 04:51:04 +01:00
%sfoobaz|foo|foobar<ret>
Reference in New Issue
Copy Permalink
Mastodon