From ce6bb367dacaabda85a87d6501a5369215e3059d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=81=E5=AE=81?= <383514580@qq.com> Date: Fri, 28 Jun 2019 10:58:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=A9"URL=E6=AD=A3=E5=88=99"?= =?UTF-8?q?=E7=AC=A6=E5=90=88lint=E8=A6=81=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/RULES.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RULES.js b/src/RULES.js index e351ecb..d461b28 100644 --- a/src/RULES.js +++ b/src/RULES.js @@ -1,7 +1,7 @@ module.exports = [ { title: 'URL正则', - rule: /^((https?|ftp|file):\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})(\/\w\.-]*)*\/?$/, + rule: /^((https?|ftp|file):\/\/)?([\da-z.-]+)\.([a-z.]{2,6})(\/\w\.-]*)*\/?$/, example: '如: www.qq.com 、file:///C:/Users/KD/index.js' }, {