-
Notifications
You must be signed in to change notification settings - Fork 12
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
Regexp rule with $domain modifier doesn't work in 4.4 extension when the length of a domain is specified #136
Comments
Its a known problem; in the case of some modifiers, we need special tokenization in the future, but in the meantime the comma should be escaped, e.g. [$domain=/^webteizle\d{0\,2}\.info/]##body |
[$domain=/exampl[exyz]+\.com)/]##body
! ↑ missing opening parenthesis
[$domain=/example\.(com|org)/]##body
! ↑ pipe should be escaped, otherwise $domain considers it as a separator |
@scripthunter7 Isn't it separators check fail? In uBO this regexp is valid |
What do you mean?
We don't yet support this syntax |
@scripthunter7
I just tell about regexp, which works in UBO without "redundant" escaping.
Ok, this works |
@Alex-302 Yes, we'll need a special tokenization that allows regexps to be used without such escape constraints. But for this, the operation of the network rule / modifier parser must be completely reworked, several edge cases must be handled, care must be taken to ensure that no new issues arise and the parsing speed must also be kept at an appropriate level, but regardless, this improvement is already planned, and there are already related issues in the tracker, I think we'll implement it soon |
Great) |
Steps to reproduce:
[$domain=/^webteizle\d{0,2}\.info/]##body
The rule should work on webteizle.info.
The text was updated successfully, but these errors were encountered: