Enforce spaces around magic links (RFC, PMID, and ISBN).
authorC. Scott Ananian <cscott@cscott.net>
Fri, 16 May 2014 00:19:10 +0000 (17:19 -0700)
committerTim Starling <tstarling@wikimedia.org>
Thu, 11 Dec 2014 03:41:23 +0000 (03:41 +0000)
commit25d35fc65c54a787ea91c5326bbb2a8de486a773
tree55a53609e059ecb379abce225d3add635e32ac73
parentd5810f763a627ec25334d82f7e69b4d6b1d8a515
Enforce spaces around magic links (RFC, PMID, and ISBN).

Ensure that there is a \b boundary before and after RFC, PMID, and ISBN
links.  (Previously we enforced \b boundaries only before free external
links and after ISBN links.)  Consistency is a good thing!

In addition:
* \b is not a PHP escape sequence, so you don't need to write \\b inside
  a string.
* \b before the numeric part of an ISBN is pointless: by the structure
  of the regexp there will always be a space on the left and a word
  character (a digit) on the right.

Bug: 65278
Change-Id: Ic315b988091a5c7530a8285b9249804db72e55db
RELEASE-NOTES-1.25
includes/parser/Parser.php
tests/parser/parserTests.txt