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
{{ message }}
Repository navigation
regex compiling adjacent empty noncapturing regex groups raises an invalid memory reference #5605
issue: (?:) is a valid empty noncapturing group. Two such groups in sequence should compile and match the empty string, but pregexp raises invalid memory reference while compiling them.
repro:
(pregexp "(?:)(?:)")
; invalid memory reference. Some debugging context lost
expected:
The pattern should compile. (regexp-match? (pregexp "(?:)(?:)") "") should return #t.
Activity
CS regexp: repair parsing of consecutive empty sequences