{"ScriptPreparationCode":null,"TestCases":[{"Name":"newUrl","Code":"const url = new URL(\u0027https://www.google.com/test?param1=test1\u0026param2=test2\u0027);\r\n\r\nif (\r\n [\u0027http:\u0027, \u0027https:\u0027].includes(url.protocol) \u0026\u0026\r\n (url.hostname.endsWith(\u0027.google.com\u0027) ||\r\n url.hostname === \u0027google.com\u0027)\r\n) {\r\n return url;\r\n}","IsDeferred":false},{"Name":"RegEx","Code":"const urlPattern = new RegExp(\u0027^(https?:\\\\/\\\\/)((([a-z\\\\d]*)\\\\.)\u002Bgoogle\\\\.com)(\\\\/[-a-z\\\\d%_.~\u002B]*)*(\\\\?[;\u0026a-z\\\\d%_.~\u002B=-]*)?\u0027,\u0027i\u0027);\r\nconst url = \u0027https://www.google.com/test?param1=test1\u0026param2=test2\u0027;\t \r\nif (!!urlPattern.test(url)) {\r\n return url;\r\n}","IsDeferred":false}]}