fix: 让"URL正则"符合lint要求

This commit is contained in:
宁宁 2019-06-28 10:58:13 +08:00
parent f45dee7b70
commit ce6bb367da

View File

@ -1,7 +1,7 @@
module.exports = [ module.exports = [
{ {
title: 'URL正则', 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' example: '如: www.qq.com 、file:///C:/Users/KD/index.js'
}, },
{ {