disallow embedded line breaks in ISBNs; allowing them breaks things in a most interes...
authorIlmari Karonen <vyznev@users.mediawiki.org>
Fri, 1 Dec 2006 03:16:22 +0000 (03:16 +0000)
committerIlmari Karonen <vyznev@users.mediawiki.org>
Fri, 1 Dec 2006 03:16:22 +0000 (03:16 +0000)
includes/Parser.php

index 17005ff..ef298a3 100644 (file)
@@ -987,7 +987,7 @@ class Parser
                            <a.*?</a> |                 # Skip link text
                            <.*?> |                     # Skip stuff inside HTML elements
                            (?:RFC|PMID)\s+([0-9]+) |   # RFC or PMID, capture number as m[1]
-                           ISBN\s+(\b[0-9Xx\s\-]+)     # ISBN, capture number as m[2]
+                           ISBN\s+(\b[0-9Xx\ \-]+)     # ISBN, capture number as m[2]
                        )!x', array( &$this, 'magicLinkCallback' ), $text );
                wfProfileOut( __METHOD__ );
                return $text;