Tidy up regex

master
Stephen Cochrane 2 years ago
parent eda786b47b
commit fcd01e77fd
  1. 2
      pdf

2
pdf

@ -75,7 +75,7 @@ fetch_pdf ()
url="${args[$index]}"
# Check to see if we need to download the pdf
if [[ "$url" =~ ^http:// ]] || [[ "$url" =~ ^https:// ]]
if [[ "$url" =~ ^http(s)?:// ]]
then
file=$(basename "$url")
else

Loading…
Cancel
Save