mirror of
https://github.com/pi-hole/FTL.git
synced 2025-12-25 04:25:44 +00:00
Merge pull request #1563 from pi-hole/test/new_gravity_pattern
Allowing underscore and hyphen in any position for gravity parseList
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
// Adapted from https://stackoverflow.com/a/30007882
|
||||
// - Added "(?:...)" to form non-capturing groups (slightly faster)
|
||||
#define TLD_PATTERN "[a-z0-9][a-z0-9-]{0,61}[a-z0-9]"
|
||||
#define SUBDOMAIN_PATTERN "([a-z0-9]([a-z0-9_-]{0,61}[a-z0-9]){0,1}\\.)"
|
||||
#define SUBDOMAIN_PATTERN "([a-z0-9_-]{0,63}\\.)"
|
||||
|
||||
// supported exact style: subdomain.domain.tld
|
||||
// SUBDOMAIN_PATTERN is mandatory for exact style, disallowing TLD blocking
|
||||
|
||||
Reference in New Issue
Block a user