Browse Source

Ajusted regexp

Brendan Abolivier 8 years ago
parent
commit
c64fe2994b
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key ID: 8EF1500759F70623
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      welcomehome

+ 1
- 1
welcomehome View File

19
     # Check if URL is starting with "http(s)://"
19
     # Check if URL is starting with "http(s)://"
20
     # Returns the same code as grep, which is 1 if incorrect,
20
     # Returns the same code as grep, which is 1 if incorrect,
21
     # 0 if correct
21
     # 0 if correct
22
-    echo $1 | grep -E "https?\://"
22
+    echo $1 | grep -E "^https?\://"
23
     return $?
23
     return $?
24
 }
24
 }
25
 
25