Skip to content

Commit

Permalink
Merge pull request #88 from tyronbrand/address-map-newline
Browse files Browse the repository at this point in the history
new line fix for windows OS
  • Loading branch information
tyronbrand authored Jul 14, 2022
2 parents f78321f + f54a6c1 commit 544e25f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Flow.Net.Sdk.Core/Models/FlowInteractionBase.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Flow.Net.Sdk.Core.Cadence;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
Expand Down Expand Up @@ -26,7 +27,7 @@ private static string ReplaceImports(string txText, Dictionary<string, string> a
{
const string pattern = @"^(\s*import\s+\w+\s+from\s+)(?:0x)?(.+)\s*$";
return string.Join("\n",
txText.Split('\n')
txText.Split(new string[] { Environment.NewLine }, StringSplitOptions.None)
.Select(line =>
{
var match = Regex.Match(line, pattern);
Expand Down

0 comments on commit 544e25f

Please sign in to comment.