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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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