13 lines
312 B
C#
13 lines
312 B
C#
|
namespace Ficdown.Parser.Engine
|
|||
|
{
|
|||
|
using System.Text.RegularExpressions;
|
|||
|
|
|||
|
internal static class Utilities
|
|||
|
{
|
|||
|
public static string NormalizeString(string raw)
|
|||
|
{
|
|||
|
return Regex.Replace(Regex.Replace(raw.ToLower(), @"^\W+|\W+$", string.Empty), @"\W+", "-");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|