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

Updated regexps to not match HOSTS syntax rules #1654

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

Alex-302
Copy link
Member

#1646
» 127.0.0.1 widgets.ad.style excluded by /(?:^\|\|?|^)(127\.[\d\.*]+)\|{0,1}/
https://regex101.com/r/yaXZTG/1

@@ -1,12 +1,12 @@
! Private IP address ranges
! 10.0.0.0 – 10.255.255.255
/(?:^\|\|?|^)(10\.[\d\.*]+)\|{0,1}/
/(?:^\|\|?|^)(10\.?[\d\.*]+)\|{0,1}$/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I'm not wrong, it will also exclude something like 100.1.1.1, but I guess that it doesn't matter.

@Alex-302 Alex-302 merged commit 58bb9fa into master Mar 12, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

4 participants