Compile key patterns for repeated test calls. A string matches
case-insensitively. A RegExp is copied without its g and y flags:
test on such a pattern starts at its lastIndex and moves it, so reusing
it across keys would skip matches (review 5916926264 #6). The caller's
RegExp is never touched.
Compile key patterns for repeated
testcalls. A string matches case-insensitively. A RegExp is copied without itsgandyflags:teston such a pattern starts at itslastIndexand moves it, so reusing it across keys would skip matches (review 5916926264 #6). The caller's RegExp is never touched.