mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 20:54:16 +01:00
Use normalization before replacing symbols.
This commit is contained in:
parent
8dab9407ad
commit
1353e591b8
1 changed files with 1 additions and 2 deletions
|
|
@ -160,9 +160,8 @@ public partial class Mod
|
||||||
{
|
{
|
||||||
return replacement + replacement;
|
return replacement + replacement;
|
||||||
}
|
}
|
||||||
|
|
||||||
StringBuilder sb = new(s.Length);
|
StringBuilder sb = new(s.Length);
|
||||||
foreach( var c in s )
|
foreach( var c in s.Normalize(NormalizationForm.FormKC) )
|
||||||
{
|
{
|
||||||
if( c.IsInvalidAscii() || c.IsInvalidInPath() )
|
if( c.IsInvalidAscii() || c.IsInvalidInPath() )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue