{"ScriptPreparationCode":"const pattern = \u0027/s/test\u0027\r\n\r\nvar pageUrl = \u0022https://www.test.com/s/test/\u0022;\r\nvar regex = new RegExp(\u0060${pattern}(/$|$)\u0060);","TestCases":[{"Name":"regex","Code":"regex.test(pageUrl)","IsDeferred":false},{"Name":"js","Code":"pageUrl.replace(/\\/$/, \u0027\u0027).endsWith(pattern)","IsDeferred":false}]}