mirror of
https://github.com/pi-hole/pi-hole
synced 2025-03-15 16:56:06 +00:00
Fix the regex to strip options even when they are before the domain
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
parent
eda83a4141
commit
4af71d8429
@ -50,7 +50,7 @@ fi
|
||||
|
||||
# Strip valid options, leaving only the domain and invalid options
|
||||
# This allows users to place the options before or after the domain
|
||||
options=$(sed -E 's/ +-(all|exact) ?//g' <<< "${options}")
|
||||
options=$(sed -E 's/(^|\s)-(all|exact) ?//g' <<< "${options}")
|
||||
|
||||
# Handle remaining options
|
||||
# If $options contain non ASCII characters, convert to punycode
|
||||
|
Loading…
Reference in New Issue
Block a user