mirror of
https://github.com/nextcloud/nextcloud.com.git
synced 2026-01-12 15:44:37 +00:00
11 lines
343 B
JavaScript
11 lines
343 B
JavaScript
|
|
function boolMatch(s, matchers) {
|
|
var i, matcher, down = s.toLowerCase();
|
|
matchers = [].concat(matchers);
|
|
for (i = 0; i < matchers.length; i += 1) {
|
|
matcher = matchers[i];
|
|
if (matcher.test && matcher.test(s)) return true;
|
|
if (matcher && matcher.toLowerCase() === down) return true;
|
|
}
|
|
}
|