- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 29 Jun 2007 00:37:39 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv22439
Modified Files:
check
Log Message:
As noted by Ville, in regexp character classes | is a literal character.
=> fixing the regex for matching encoding value, in xml declaration detection code.
Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.533
retrieving revision 1.534
diff -u -d -r1.533 -r1.534
--- check 28 Jun 2007 10:53:26 -0000 1.533
+++ check 29 Jun 2007 00:37:37 -0000 1.534
@@ -1936,7 +1936,7 @@
# Maybe we should use \d\.\d
([\x20|\x9|\xD|\xA]+ encoding
[\x20|\x9|\xD|\xA]* = [\x20|\x9|\xD|\xA]*
- ("[A-Za-z][a-zA-Z0-9|-|_]+"|'[A-Za-z][a-zA-Z0-9|_|-]+')
+ ("[A-Za-z][a-zA-Z0-9_-]+"|'[A-Za-z][a-zA-Z0-9_-]+')
)? # encoding info is optional
([\x20|\x9|\xD|\xA]+ standalone
[\x20|\x9|\xD|\xA]* = [\x20|\x9|\xD|\xA]*
Received on Friday, 29 June 2007 00:37:45 UTC