mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
7d83540527
Change-Id: I29a6c91d0780dc9a1eaee6d29d3b1f9c9c708df7
8 lines
214 B
Raku
8 lines
214 B
Raku
count("a,b,c,d") = 4 &
|
|
count(",", "a,b,c,d") = 3 &
|
|
count("", "abcd") = 0 &
|
|
count("a", "abab") = 2 &
|
|
count("ab", "abab") = 2 &
|
|
/* This probably shouldn't count overlapping occurrences... */
|
|
count("aa", "aaaaa") = 4
|