From 9bed4d9c3a4121f7b3da87aa2c7d23f6b6842e9f Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Wed, 9 May 2018 20:42:24 +0200 Subject: [PATCH] Fix regex for URI scheme according to RFC3986 (fix 104973) --- scripts/xdg-open.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in index 2972257..3793dd6 100644 --- a/scripts/xdg-open.in +++ b/scripts/xdg-open.in @@ -72,7 +72,7 @@ get_key() is_file_url_or_path() { if echo "$1" | grep -q '^file://' \ - || ! echo "$1" | egrep -q '^[[:alpha:]+\.\-]+:'; then + || ! echo "$1" | grep -q '^[a-zA-Z][a-zA-Z0-9+\.\-]*:'; then return 0 else return 1 -- 2.17.0