From 3f71e0fb3441fbd199e6fb8e24d8aa84a820aae4 Mon Sep 17 00:00:00 2001 From: Ilmari Karonen Date: Fri, 1 Dec 2006 02:39:19 +0000 Subject: [PATCH] (bug 8110) allow spaces in ISBNs --- RELEASE-NOTES | 1 + includes/Parser.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; -- 2.20.1