mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-12-24 19:43:06 +00:00
069fa064f5
Bug: T285978 Change-Id: I3d100fd05f34fe3b01ecbbce5361badc613f9406
7 lines
229 B
Perl
7 lines
229 B
Perl
strpos( "foobarfoo", "foo" ) === 0 &
|
|
strpos( "foobarfoo", "" ) === -1 &
|
|
strpos( "foobarfoo", "foo", 1 ) === 6 &
|
|
strpos( "foobarfoo", "lol" ) === -1 &
|
|
/* Offset not contained in the haystack */
|
|
strpos( "foo", "o", 123456 ) === -1
|