Skip to content

Commit

Permalink
Use platform independent notion of lines
Browse files Browse the repository at this point in the history
  • Loading branch information
rneatherway committed May 29, 2015
1 parent d969c77 commit 330d518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FSharp.AutoComplete/test/integration/TestHelpers.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ let formatJson json =
JsonConvert.SerializeObject(parsedJson, Formatting.Indented)

let writeNormalizedOutput (fn: string) (s: string) =
let lines = s.TrimEnd().Split('\n')
let lines = s.TrimEnd().Split([|Environment.NewLine|], StringSplitOptions.None)
for i in [ 0 .. lines.Length - 1 ] do
if Path.DirectorySeparatorChar = '/' then
lines.[i] <- Regex.Replace(lines.[i],
Expand Down

0 comments on commit 330d518

Please sign in to comment.