Index: trunk/phase3/maintenance/parserTests.txt |
— | — | @@ -6499,6 +6499,15 @@ |
6500 | 6500 | !! end |
6501 | 6501 | |
6502 | 6502 | !! test |
| 6503 | +Bug 22905: <abbr> followed by ISBN followed by </a> |
| 6504 | +!! input |
| 6505 | +<abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com] |
| 6506 | +!! result |
| 6507 | +<p><abbr>(fr)</abbr> <a href="https://www.mediawiki.org/wiki/Special:BookSources/2753300917" class="internal mw-magiclink-isbn">ISBN 2753300917</a> <a href="http://www.example.com" class="external text" rel="nofollow">example.com</a> |
| 6508 | +</p> |
| 6509 | +!! end |
| 6510 | + |
| 6511 | +!! test |
6503 | 6512 | Double RFC |
6504 | 6513 | !! input |
6505 | 6514 | RFC RFC 1234 |
Index: trunk/phase3/CREDITS |
— | — | @@ -115,6 +115,7 @@ |
116 | 116 | * ST47 |
117 | 117 | * Scott Colcord |
118 | 118 | * Simon Walker |
| 119 | +* Solitarius |
119 | 120 | * Stefano Codari |
120 | 121 | * Str4nd |
121 | 122 | * svip |
Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -970,7 +970,7 @@ |
971 | 971 | $urlChar = self::EXT_LINK_URL_CLASS; |
972 | 972 | $text = preg_replace_callback( |
973 | 973 | '!(?: # Start cases |
974 | | - (<a.*?</a>) | # m[1]: Skip link text |
| 974 | + (<a[ \t\r\n>].*?</a>) | # m[1]: Skip link text |
975 | 975 | (<.*?>) | # m[2]: Skip stuff inside HTML elements' . " |
976 | 976 | (\\b(?:$prots)$urlChar+) | # m[3]: Free external links" . ' |
977 | 977 | (?:RFC|PMID)\s+([0-9]+) | # m[4]: RFC or PMID, capture number |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -55,6 +55,7 @@ |
56 | 56 | * (bug 18664) Relative URIs in interwiki links cause failed redirects |
57 | 57 | * (bug 19270) Relative URIs in interwiki links break interwiki transclusion |
58 | 58 | * (bug 22903) Revdelete log entries now show in the user preferred language. |
| 59 | +* (bug 22905) Correctly handle <abbr> followed by ISBN |
59 | 60 | |
60 | 61 | == API changes in 1.17 == |
61 | 62 | * (bug 22738) Allow filtering by action type on query=logevent |