{"ScriptPreparationCode":"var s1 = \u0022foo.bar\u0022;\r\nvar s2 = \u0022foo\u0022;","TestCases":[{"Name":"substring","Code":"var x = s1.indexOf(\u0022.\u0022)\r\nif(x !== -1) {\r\n\tvar n1 = s1.substring(0, x);\r\n}\r\nvar x2 = s2.indexOf(\u0027.\u0027)\r\nif(x2 !== -1) {\r\n\tvar n2 = s2.substring(0, x2);\r\n}","IsDeferred":false},{"Name":"split","Code":"var n1 = s1.split(\u0022.\u0022)[0];\r\nvar n2 = s2.split(\u0022.\u0022)[0];","IsDeferred":false}]}