This website requires JavaScript.
Explore
Help
Register
Sign In
wikimedia
/
mediawiki-extensions-AbuseFilter
Watch
1
Star
0
Fork
You've already forked mediawiki-extensions-AbuseFilter
0
mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced
2024-12-11 05:36:09 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
77905f7873
mediawiki-extensions-AbuseF...
/
tests
/
string.t
2 lines
32 B
Perl
Raw
Normal View
History
Unescape
Escape
Rewrite of Abuse Filter parser tokeniser. I've made it more performant and fixed a few bugs by using regexes instead of PHP loops, where possible, under the assumption that the PCRE parser is more efficient than the same thing implemented in pure PHP. Also, I'm now passing the same string around and calculating offsets, which Tim tells me is far more performant than continually truncating the same string. All tests still pass, with the exception of string.t, which I've modified to remove the offending code, which never worked.
2009-02-11 01:41:51 +00:00
"a\tb"
=
"a b"
&
"a\qb"
=
"aqb"
Reference in a new issue
Copy permalink