diff options
author | ot <ot@localhost> | 2007-06-29 00:37:37 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2007-06-29 00:37:37 +0000 |
commit | ab41ec3681821a9b593194a02950402ed7b88c7e (patch) | |
tree | 277cf1a73f6c121aba9a0106e5408501753a2a68 | |
parent | c6208fa691ddaab054353899e015dd94175f5b83 (diff) | |
download | markup-validator-ab41ec3681821a9b593194a02950402ed7b88c7e.zip markup-validator-ab41ec3681821a9b593194a02950402ed7b88c7e.tar.gz markup-validator-ab41ec3681821a9b593194a02950402ed7b88c7e.tar.bz2 |
As noted by Ville, in regexp character classes | is a literal character.
=> fixing the regex for matching encoding value, in xml declaration detection code.
-rwxr-xr-x | httpd/cgi-bin/check | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index 84ee5fc..68f713a 100755 --- a/httpd/cgi-bin/check +++ b/httpd/cgi-bin/check @@ -14,7 +14,7 @@ # This source code is available under the license at: # http://www.w3.org/Consortium/Legal/copyright-software # -# $Id: check,v 1.533 2007-06-28 10:53:26 ot Exp $ +# $Id: check,v 1.534 2007-06-29 00:37:37 ot Exp $ # # Disable buffering on STDOUT! @@ -181,7 +181,7 @@ Directory not readable (permission denied): @_r # # Strings - $VERSION = q$Revision: 1.533 $; + $VERSION = q$Revision: 1.534 $; $VERSION =~ s/Revision: ([\d\.]+) /$1/; # @@ -1936,7 +1936,7 @@ sub set_parse_mode { # 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]* |