{"ScriptPreparationCode":null,"TestCases":[{"Name":"regex","Code":"const site = \u0022archive.test.org\u0022;\r\nconst regex = new RegExp(\u0022https?:\\/\\/\u0022 \u002B site \u002B \u0022\\/\u0022);\r\n\r\nfor (let k = 0; k \u003C 10000; k\u002B\u002B) {\r\n\t\u0022https://archive.test.org/board/\u0022.replace(regex, \u0022\u0022);\r\n}","IsDeferred":false},{"Name":"multiple replaces","Code":"const site = \u0022archive.test.org\u0022;\r\n\r\nfor (let k = 0; k \u003C 10000; k\u002B\u002B) {\r\n\t\u0022https://archive.test.org/board/\u0022.replace(\u0022https://\u0022, \u0022\u0022).replace(\u0022http://\u0022, \u0022\u0022).replace(site).replace(\u0022/\u0022);\r\n}","IsDeferred":false},{"Name":"sneaky","Code":"const site = \u0022archive.test.org\u0022;\r\n\r\nfor (let k = 0; k \u003C 10000; k\u002B\u002B) {\r\n\tlet s = \u0022https://archive.test.org/board/\u0022;\r\n\r\n\ts = s.substring(4);\r\n\r\n if(s.startsWith(\u0022s\u0022)) {\r\n\t\t s = s.substring(1);\r\n }\r\n\r\n\ts = s.substring(4 \u002B site.length);\r\n\r\n}","IsDeferred":false}]}