Sha256: e33f385274c8abd6287028429954740f55241c859371c064fe0c3b01e9b23579
Contents?: true
Size: 343 Bytes
Versions: 58
Compression:
Stored size: 343 Bytes
Contents
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; } }
Version data entries
58 entries across 58 versions & 4 rubygems