From: Ilmari Karonen Date: Fri, 1 Dec 2006 02:59:21 +0000 (+0000) Subject: avoid matching "ISBN " in "ISBN foo" X-Git-Tag: 1.31.0-rc.0~55024 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=2732754a5c5680642396c66944bb63a5dc516def;p=lhc%2Fweb%2Fwiklou.git avoid matching "ISBN " in "ISBN foo" --- diff --git a/includes/Parser.php b/includes/Parser.php index 232d0c2a9f..17005ffe5c 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+(\b[0-9Xx\s\-]+) # ISBN, capture number as m[2] )!x', array( &$this, 'magicLinkCallback' ), $text ); wfProfileOut( __METHOD__ ); return $text;