mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-12 00:23:12 +00:00
allow digits and underscores in JS URL syntax check
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3427 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
7c088132ec
commit
681f3e1aaf
1 changed files with 1 additions and 1 deletions
|
|
@ -17,6 +17,6 @@ function isValid (thisForm) {
|
|||
|
||||
// check url syntax
|
||||
function checkSyntax (url) {
|
||||
var syntax = /^https?:\/\/[-a-zA-Z.\/=%?~]+$/;
|
||||
var syntax = /^https?:\/\/[-_a-zA-Z0-9.\/=%?~]+$/;
|
||||
return syntax.test(url);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue