Files
BetterLyrics/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Helper/StringHelper.cs
Zhe Fang 34d7f3f319 fix
2025-07-11 18:08:05 -04:00

20 lines
525 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BetterLyrics.WinUI3.Helper
{
public static class StringHelper
{
// 去除空格、括号、下划线、横杠、点、大小写等
public static string Normalize(string s) =>
new string(s
.Where(c => char.IsLetterOrDigit(c))
.ToArray())
.ToLowerInvariant();
public static string NewLine = "\n";
}
}