瀏覽代碼

Ajusted regexp

Brendan Abolivier 8 年之前
父節點
當前提交
c64fe2994b
簽署人: Brendan Abolivier <contact@brendanabolivier.com> GPG 金鑰 ID: 8EF1500759F70623
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      welcomehome

+ 1
- 1
welcomehome 查看文件

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