From 69296d87d7d1f4aa1b1c6f9a4cb7f571036bb388 Mon Sep 17 00:00:00 2001 From: Anders Damsgaard Date: Wed, 19 Dec 2018 10:32:00 +0100 Subject: [PATCH] Parse dot as period, not character wildcard --- .scripts/i3cmds/ducksearch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scripts/i3cmds/ducksearch b/.scripts/i3cmds/ducksearch index 2e14513..4e79570 100755 --- a/.scripts/i3cmds/ducksearch +++ b/.scripts/i3cmds/ducksearch @@ -14,7 +14,7 @@ if [ "$choice" = "🦆" ]; then $browser "https://duckduckgo.com" else # 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" else $browser "https://duckduckgo.com/?q=$choice&t=ffab&atb=v1-1"