Recovered parser test whose content got broken in r12975, functionality broken in...
authorPlatonides <platonides@users.mediawiki.org>
Wed, 5 May 2010 21:58:39 +0000 (21:58 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Wed, 5 May 2010 21:58:39 +0000 (21:58 +0000)
commit73649741ed1e2f557aec22a485598b199fdd2d09
treee648844136dbe0d32674ebf0e0f3f6ed7948ad14
parent7ece26fd50718791b3a2b7d9ab66dd8ce07bdd3f
Recovered parser test whose content got broken in r12975, functionality broken in r14635.

Changed what used to be EXT_LINK_TEXT_CLASS to
define( 'EXT_LINK_TEXT_CLASS', '[^\]\\x00-\\x08\\x0a-\\x1F]' );
In plain English, do not allow control characters in description. We still allow tabs
there, since they may arrive from a paste.

We should probably make the space between the text and the description mandatory, it needs testing.

These tests only work with the Hash Preprocessor, since the DOM Preprocessor changes them into the
replacement character. Should we autolink an URL with a FFFD? That will require changing some regex
into unicode ones.
includes/DefaultSettings.php
includes/parser/Parser.php
maintenance/ExtraParserTests.txt [new file with mode: 0644]
maintenance/parserTests.inc
maintenance/parserTests.txt