From 681f3e1aaf9e0d22e85866e80c2566f87b8fff3c Mon Sep 17 00:00:00 2001 From: calvin Date: Mon, 4 Sep 2006 16:55:57 +0000 Subject: [PATCH] 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 --- cgi-bin/lconline/check.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi-bin/lconline/check.js b/cgi-bin/lconline/check.js index 7cd33665..9ead75d7 100644 --- a/cgi-bin/lconline/check.js +++ b/cgi-bin/lconline/check.js @@ -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); }