Remove what seems to be an accidentally checked-in testing line:
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 22 Aug 2004 09:57:12 +0000 (09:57 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 22 Aug 2004 09:57:12 +0000 (09:57 +0000)
'/([^> ]+(&#x30(1|3|9);)[^< ]*)/i' => '<span class="diacrit">\\1</span>',
(Originally added by gwicke in revision 1.197)

With very long 'words' this regexp is super slow, and causes timeouts:
Bug 183: timeout in Parser.php with Tidy
http://bugzilla.wikipedia.org/show_bug.cgi?id=183

includes/Parser.php

index 369f04f..071df07 100644 (file)
@@ -146,7 +146,6 @@ class Parser
                                '/ (\\?|:|;|!|\\302\\273)/i' => '&nbsp;\\1',
                                # french spaces, Guillemet-right
                                '/(\\302\\253) /i' => '\\1&nbsp;',
-                               '/([^> ]+(&#x30(1|3|9);)[^< ]*)/i' => '<span class="diacrit">\\1</span>',
                                '/<center *>/i' => '<div class="center">',
                                '/<\\/center *>/i' => '</div>'
                        );