Last modified: 2007-12-04 03:34:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T13701, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 11701 - document $wgSpamRegex matches body, not just line
document $wgSpamRegex matches body, not just line
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Documentation (Other open bugs)
1.11.x
All All
: Lowest trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-18 18:21 UTC by Dan Jacobson
Modified: 2007-12-04 03:34 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dan Jacobson 2007-10-18 18:21:14 UTC
*** 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:
Comment 1 Brion Vibber 2007-12-03 21:35:33 UTC
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.
Comment 2 Dan Jacobson 2007-12-04 03:34:04 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links