Parse dot as period, not character wildcard
This commit is contained in:
1 parent
ca12ed28a5
commit
69296d87d7
1 file changed
+1
-1
@@ -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"
|
||||||
|
|||||||
Reference in new issue
Block a user