(bug 8110) allow spaces in ISBNs
authorIlmari Karonen <vyznev@users.mediawiki.org>
Fri, 1 Dec 2006 02:39:19 +0000 (02:39 +0000)
committerIlmari Karonen <vyznev@users.mediawiki.org>
Fri, 1 Dec 2006 02:39:19 +0000 (02:39 +0000)
RELEASE-NOTES
includes/Parser.php

index ea652b6..bf49107 100644 (file)
@@ -229,6 +229,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Patch from LeonWP: added UploadForm:BeforeProcessing hook in SpecialUpload.php
 * Add AuthPluginSetup hook to override $wgAuth after configuration
 * Fix regression in authentication hook auto-creation on login
+* (bug 8110) Allow spaces in ISBNs.
 
 
 == Languages updated ==
index 94b8215..232d0c2 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+([0-9Xx-]+)          # ISBN, capture number as m[2]
+                           ISBN\s+([0-9Xx\ \-]+)       # ISBN, capture number as m[2]
                        )!x', array( &$this, 'magicLinkCallback' ), $text );
                wfProfileOut( __METHOD__ );
                return $text;