Browse Source

improve url check

master
filesite 6 months ago
parent
commit
f8f91364fe
  1. 2
      common.mjs

2
common.mjs

@ -133,7 +133,7 @@ class Common { @@ -133,7 +133,7 @@ class Common {
//检查url是否符合要求
isUrlOk(url) {
return /^http(s)?:\/\/[\w\-\.\/:]{6,100}$/i.test(url);
return /^http(s)?:\/\/[\w\-\.\/:\?]{6,100}$/i.test(url);
}
//检查uuid是否符合要求:6-32位的英文字符串

Loading…
Cancel
Save