Page MenuHomePhabricator

document $wgSpamRegex matches body, not just line
Closed, InvalidPublic

Description

  • DefaultSettings.php 2007-09-11 05:36:51.000000000 +0800
  • /tmp/DefaultSettings.php 2007-10-19 02:01:40.224675928 +0800 ***
  • 1809,1811 **** $wgSpamRegex = false;

! /** Similarly you can get a function to do the job. The function will be given

    • the following args:
  • 1809,1812 ---- $wgSpamRegex = false;

! /** ^ and $ match the beginning and end of the entire text, not just one line.
! * Similarly you can get a function to do the job. The function will be given

  • the following args:

Version: 1.11.x
Severity: trivial

Details

Reference
bz11701

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 9:56 PM
bzimport set Reference to bz11701.
bzimport added a subscriber: Unknown Object (MLST).

Since the complete regex is under your control, you may match per-line with the //m option.

Nor would ^ and $ have anything to do with the callback option which the modified comment describes.

What I'm trying to say is it is not clear to people used to man perlop,
^ Match the beginning of the line
$ Match the end of the line (or before newline at the end)
just what the scope is that you are matching, and it might be good to add
some words about it.