2017-10-19 23:39:57 +02:00
|
|
|
|
//---------------------------------------------------------------------
|
|
|
|
|
// <copyright file="StringHelper.cs" company="Microsoft">
|
|
|
|
|
// Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
|
|
|
|
|
// </copyright>
|
|
|
|
|
//---------------------------------------------------------------------
|
|
|
|
|
|
2017-11-11 01:14:41 +01:00
|
|
|
|
namespace Microsoft.OpenApi.OData.Tests
|
2017-10-19 23:39:57 +02:00
|
|
|
|
{
|
|
|
|
|
public static class StringHelper
|
|
|
|
|
{
|
|
|
|
|
public static string Replace(this string rawString, string newLine = "\n")
|
|
|
|
|
{
|
|
|
|
|
rawString = rawString.Trim('\n', '\r');
|
|
|
|
|
rawString = rawString.Replace("\r\n", newLine);
|
|
|
|
|
return rawString;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|