diff options
Diffstat (limited to 'rssadd')
-rwxr-xr-x | rssadd | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4,7 +4,7 @@ if echo "$1" | grep -q "https*://\S\+\.[A-Za-z]\+\S*"; then url="$1" else url="$(grep -Eom1 '<[^>]+(rel="self"|application/[a-z]+\+xml)[^>]+>' "$1" | - grep -o "https?://[^\" ]")" + grep -o 'https?://[^" ]')" echo "$url" | grep -q "https*://\S\+\.[A-Za-z]\+\S*" || notify-send "That doesn't look like a full URL." && exit 1 |