mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-05 23:06:10 +00:00
17 lines
403 B
C#
17 lines
403 B
C#
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);
|
|
}
|
|
}
|
|
}
|