feat: add support for CJK unified ideographs

This commit is contained in:
Alexandre Pasmantier 2025-01-07 13:29:37 +01:00
parent 072ecdba73
commit 2492546b51

View File

@ -257,6 +257,10 @@ pub fn replace_non_printable(
{ {
output.push(*NULL_SYMBOL); output.push(*NULL_SYMBOL);
} }
// CJK Unified Ideographs
c if ('\u{4E00}'..='\u{9FFF}').contains(&c) => {
output.push(c);
}
// Unicode characters above 0x0700 seem unstable with ratatui // Unicode characters above 0x0700 seem unstable with ratatui
c if c > '\u{0700}' => { c if c > '\u{0700}' => {
output.push(*NULL_SYMBOL); output.push(*NULL_SYMBOL);