From: Ilmari Karonen Date: Fri, 1 Dec 2006 02:39:19 +0000 (+0000) Subject: (bug 8110) allow spaces in ISBNs X-Git-Tag: 1.31.0-rc.0~55025 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=3f71e0fb3441fbd199e6fb8e24d8aa84a820aae4;p=lhc%2Fweb%2Fwiklou.git (bug 8110) allow spaces in ISBNs --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index ea652b66f4..bf49107b75 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/Parser.php b/includes/Parser.php index 94b8215948..232d0c2a9f 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -987,7 +987,7 @@ class Parser | # 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;