Skip to content

Commit

Permalink
Carael/fix link (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carael authored Jul 10, 2023
1 parent 22559f5 commit 522d535
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ public static void MultipleActiveEnvironments(this IConsoleLogger console)
=> console.Error("Multiple Environments are marked as active");

public static void EnvironmentNotSet(this IConsoleLogger console)
=> console.Error(
=> console.Inform(
$"No active environment set. Use --environment or set one environment in .confixrc as active");
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ public static string ToLink(this FileSystemInfo fileInfo)
=> $"'{fileInfo.Name.EscapeMarkup().ToLink(fileInfo)}'";

public static string ToLink(this string str, FileSystemInfo fileInfo)
=> $"[link={fileInfo.FullName.EscapeMarkup()}]{str}[/]";
=> $"[link='{Uri.EscapeDataString(fileInfo.FullName)}']{str}[/]";
}

0 comments on commit 522d535

Please sign in to comment.