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:49 UTC

svn commit: r1382952 - in /lucene/dev/branches/branch_4x: ./ dev-tools/ dev-tools/scripts/checkJavadocLinks.py

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

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

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/dev-tools/   (props changed)
    lucene/dev/branches/branch_4x/dev-tools/scripts/checkJavadocLinks.py

Modified: lucene/dev/branches/branch_4x/dev-tools/scripts/checkJavadocLinks.py
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/dev-tools/scripts/checkJavadocLinks.py?rev=1382952&r1=1382951&r2=1382952&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/dev-tools/scripts/checkJavadocLinks.py (original)
+++ lucene/dev/branches/branch_4x/dev-tools/scripts/checkJavadocLinks.py Mon Sep 10 15:49:49 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: '