mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 11:44:56 +00:00
20 lines
432 B
C#
20 lines
432 B
C#
using Govor.Application.Interfaces;
|
|
|
|
namespace Govor.Application.Services;
|
|
|
|
public class SynchingService : ISynchingService
|
|
{
|
|
public string NormalizeNewlines(string input)
|
|
{
|
|
if (string.IsNullOrEmpty(input))
|
|
{
|
|
return input;
|
|
}
|
|
|
|
string normalized = input.Replace("\r\n", "\n");
|
|
|
|
normalized = normalized.Replace('\r', '\n');
|
|
|
|
return normalized;
|
|
}
|
|
} |