W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2010

link-checker commit: Treat non-empty URI's "ok" again with JavaScript implementations without

From: Mercurial notifier <nobody@w3.org>
Date: Thu, 05 Aug 2010 14:46:58 +0000
To: link-checker updates <www-validator-cvs@w3.org>
Message-Id: <E1Oh1ik-0005c6-D3@blinky.w3.org>
changeset:   70:3ec11556b78b
user:        ville
date:        Mon May 10 18:41:28 2004 +0000
files:       bin/checklink
description:
Treat non-empty URI's "ok" again with JavaScript implementations without
String.search().


diff -r b1dcac2446bd -r 3ec11556b78b bin/checklink
--- a/bin/checklink	Mon May 10 18:28:26 2004 +0000
+++ b/bin/checklink	Mon May 10 18:41:28 2004 +0000
@@ -5,7 +5,7 @@
 # (c) 1999-2004 World Wide Web Consortium
 # based on Renaud Bruyeron's checklink.pl
 #
-# $Id: checklink,v 3.42 2004-05-10 18:28:26 ville Exp $
+# $Id: checklink,v 3.43 2004-05-10 18:41:28 ville Exp $
 #
 # This program is licensed under the W3C(r) Software License:
 #       http://www.w3.org/Consortium/Legal/copyright-software
@@ -112,7 +112,7 @@
   $PACKAGE       = 'W3C Link Checker';
   $PROGRAM       = 'W3C-checklink';
   $VERSION       = '3.9.3-dev';
-  my ($cvsver)   = q$Revision: 3.42 $ =~ /(\d+[\d\.]*\.\d+)/;
+  my ($cvsver)   = q$Revision: 3.43 $ =~ /(\d+[\d\.]*\.\d+)/;
   $REVISION      = sprintf('version %s [%s] (c) 1999-2004 W3C',
                            $VERSION, $cvsver);
   $AGENT         = sprintf('%s/%s [%s] %s',
@@ -1966,6 +1966,8 @@
   if (u.value.length > 0) {
     if (u.value.search) {
       ok = (u.value.search(/\\S/) != -1);
+    } else {
+      ok = true;
     }
   }
   if (! ok) u.focus();
Received on Thursday, 5 August 2010 14:47:09 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:44 UTC