{"ScriptPreparationCode":null,"TestCases":[{"Name":"RegExp replace","Code":"const strip = (str) =\u003E str.replace(/\\/?index$/, \u0027\u0027);\r\n\r\nstrip(\u0027en/index\u0027);\r\nstrip(\u0027index\u0027);\r\nstrip(\u0027en/guides/getting-started\u0027);","IsDeferred":false},{"Name":"String ops","Code":"const strip = (str) =\u003E str === \u0027index\u0027 ? \u0027\u0027 : str.endsWith(\u0027/index\u0027) ? str.slice(0, -6) : str;\r\n\r\nstrip(\u0027en/index\u0027);\r\nstrip(\u0027index\u0027);\r\nstrip(\u0027en/guides/getting-started\u0027);","IsDeferred":false}]}