Parse dot as period, not character wildcard
This commit is contained in:
parent
ca12ed28a5
commit
69296d87d7
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ if [ "$choice" = "🦆" ]; then
|
||||||
$browser "https://duckduckgo.com"
|
$browser "https://duckduckgo.com"
|
||||||
else
|
else
|
||||||
# Detect if url
|
# Detect if url
|
||||||
if [[ "$choice" =~ ^(http:\/\/|https:\/\/)?[a-zA-Z0-9]+.[a-zA-Z]+(/)?.*$ ]]; then
|
if [[ "$choice" =~ ^(http:\/\/|https:\/\/)?[a-zA-Z0-9]+\.[a-zA-Z]+(/)?.*$ ]]; then
|
||||||
$browser "$choice"
|
$browser "$choice"
|
||||||
else
|
else
|
||||||
$browser "https://duckduckgo.com/?q=$choice&t=ffab&atb=v1-1"
|
$browser "https://duckduckgo.com/?q=$choice&t=ffab&atb=v1-1"
|
||||||
|
|
Loading…
Reference in a new issue