mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 03:30:34 +00:00
string formatting because lolwindows
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
|
||||
namespace Octokit.Tests.Conventions
|
||||
{
|
||||
internal static class StringExtensions
|
||||
{
|
||||
public static string FormatWithNewLine(this string s, params object[] args)
|
||||
{
|
||||
var template = Environment.NewLine == "\r\n"
|
||||
? s
|
||||
: s.Replace("\r\n", Environment.NewLine);
|
||||
|
||||
return String.Format(template, args);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user