The link text for [[/Foo/]] is `Foo` and the link text for [[../Foo/]] is `Foo`. So far so good. But the link text for [[/Foo//]] is `Foo` while the link text for [[../Foo//]] is `Foo/`. We are stripping all trailing slashes in the first case, but not the second. Fix the code so that we strip all trailing slashes in both cases. Update some of the comments in the code while we are at it. Change-Id: Id61eacafea9820c404699a7902c8eb8102779516 |
||
|---|---|---|
| .. | ||
| preprocess | ||
| extraParserTests.txt | ||
| parserTest.inc | ||
| ParserTestResult.php | ||
| parserTests.txt | ||
| parserTestsParserHook.php | ||
| README | ||
Parser tests are run using our PHPUnit test suite in tests/phpunit: $ cd tests/phpunit ./phpunit.php --group Parser You can optionally filter by title using --regex. I.e. : ./phpunit.php --group Parser --regex="Bug 6200"