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:
calvin 2006-09-04 16:55:57 +00:00
parent 7c088132ec
commit 681f3e1aaf

View file

@ -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);
}