Cache regexp in compileSelectors