{"ScriptPreparationCode":"function matchRuleShort(str, rule) {\r\n var escapeRegex = (str) =\u003E str.replace(/([.*\u002B?^=!:${}()|\\[\\]\\/\\\\])/g, \u0022\\\\$1\u0022);\r\n return new RegExp(\u0022^\u0022 \u002B rule.split(\u0022*\u0022).map(escapeRegex).join(\u0022.*\u0022) \u002B \u0022$\u0022).test(str);\r\n}","TestCases":[{"Name":"Test True","Code":"matchRuleShort(\u0022google.com/*/search\u0022, \u0022google.com/epic/gamer/time/search\u0022)","IsDeferred":false},{"Name":"Test False","Code":"matchRuleShort(\u0022google.com/*/search\u0022, \u0022google.com/epic/gamer/time/sorch\u0022)","IsDeferred":false},{"Name":"Alphabet Test (many wildcards)","Code":"matchRuleShort(\u0022a*c*e*g*i*k*m*o*q*s*u*w*y\u0022, \u0022abcdefghijklmnopqurstuvwxyz\u0022)","IsDeferred":false}]}