You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2012/09/10 17:49:30 UTC

svn commit: r1382951 - /lucene/dev/trunk/dev-tools/scripts/checkJavadocLinks.py

Author: rmuir
Date: Mon Sep 10 15:49:30 2012
New Revision: 1382951

URL: http://svn.apache.org/viewvc?rev=1382951&view=rev
Log:
invert the valid-xml chars check to work with more python installations

Modified:
    lucene/dev/trunk/dev-tools/scripts/checkJavadocLinks.py

Modified: lucene/dev/trunk/dev-tools/scripts/checkJavadocLinks.py
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/dev-tools/scripts/checkJavadocLinks.py?rev=1382951&r1=1382950&r2=1382951&view=diff
==============================================================================
--- lucene/dev/trunk/dev-tools/scripts/checkJavadocLinks.py (original)
+++ lucene/dev/trunk/dev-tools/scripts/checkJavadocLinks.py Mon Sep 10 15:49:30 2012
@@ -24,7 +24,7 @@ reHyperlink = re.compile(r'<a(\s+.*?)>',
 reAtt = re.compile(r"""(?:\s+([a-z]+)\s*=\s*("[^"]*"|'[^']?'|[^'"\s]+))+""", re.I)
 
 # Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] /* any Unicode character, excluding the surrogate blocks, FFFE, and FFFF. */
-reValidChar = re.compile("^[\u0009\u000A\u000D\u0020-\uD7FF\uE000-\uFFFD\U00010000-\U0010FFFF]*$")
+reValidChar = re.compile("^[^\u0000-\u0008\u000B-\u000C\u000E-\u001F\uFFFE\uFFFF]*$")
 
 # silly emacs: '