Files
Umbraco-CMS/tests/Umbraco.Tests.Common/Extensions/StringExtensions.cs
Paul Johnson c2d548039a Azure pipeline refactor (#12428)
* Skip symbols for Umbraco.Templates

* Resolve some test issues

+ Fixed whitespace dependant tests to pass regardless of build OS vs
run OS.

+ Snap dictionary tests were failing when Configuration was release

+ Removed hardcoded baseUrl from one of the acceptance tests

* Move docfx setup to ./build and fix

* Update UI docs title

* Added dockerfile that can be used when running the acceptance tests.

* Take explicit dependency on System.Security.Cryptography.Pkcs

* Refactor ci/cd pipeline
2022-05-19 10:02:50 +02:00

12 lines
340 B
C#

namespace Umbraco.Cms.Tests.Common.Extensions;
public static class StringExtensions
{
public static string StripNewLines(this string input) =>
input.Replace("\r\n", string.Empty)
.Replace("\n", string.Empty);
public static string NormalizeNewLines(this string input) =>
input.Replace("\r\n", "\n");
}