mirror of
https://github.com/xoofx/markdig.git
synced 2026-11-16 17:30:52 +00:00
Add quick range check in CharNormalizer
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Markdig.Helpers
|
||||
/// <returns>The simple ASCII string or null if the char itself cannot be simplified</returns>
|
||||
public static string? ConvertToAscii(char c)
|
||||
{
|
||||
return CodeToAscii.TryGetValue(c, out string? str) ? str : null;
|
||||
return c >= 160 && CodeToAscii.TryGetValue(c, out string? str) ? str : null;
|
||||
}
|
||||
|
||||
static CharNormalizer()
|
||||
|
||||
Reference in New Issue
Block a user