Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite rule broken #138

Open
christios opened this issue Jan 26, 2024 · 0 comments
Open

Rewrite rule broken #138

christios opened this issue Jan 26, 2024 · 0 comments

Comments

@christios
Copy link

_REWRITE_CAPHI_RE_4 = re.compile(u'u\\_w-\\+([^iau]+|$)')

Hello,

This CAPHI rewrite rule seems to be broken. I changed to u'u\\_w-(\\+[^iau]+|$)' and fixed it by moving the \\+ to inside the optional group as it will generally be coming from a suffix and should be treated as optional. Tested the new regex on PATB and it is giving the required results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant