浏览代码

Ajusted regexp

父节点
当前提交
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