Skip to content

Commit

Permalink
Tiny tweak to newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
rneatherway committed May 29, 2015
1 parent 330d518 commit 885d48c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FSharp.AutoComplete/test/integration/TestHelpers.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ let writeNormalizedOutput (fn: string) (s: string) =
"\"<absolute path removed>/$1")
else
if Path.GetExtension fn = ".json" then
lines.[i] <- Regex.Replace(lines.[i].Replace(@"\\", "/"),
lines.[i] <- Regex.Replace(lines.[i].Replace('\\', '/'),
"[a-zA-Z]:/.*?FSharp.AutoComplete/test/(.*?(\"|$))",
"<absolute path removed>/test/$1")
lines.[i] <- Regex.Replace(lines.[i],
Expand All @@ -84,6 +84,7 @@ let writeNormalizedOutput (fn: string) (s: string) =

if Path.GetExtension fn = ".json" then
lines.[i] <- formatJson lines.[i]
lines.[i] <- lines.[i].Replace(Environment.NewLine, "\n")

// Write manually to ensure \n line endings on all platforms
using (new StreamWriter(fn))
Expand Down

0 comments on commit 885d48c

Please sign in to comment.