Skip to content

Commit

Permalink
feat: add support for CJK unified ideographs (#243)
Browse files Browse the repository at this point in the history
Fixes #242
  • Loading branch information
alexpasmantier authored Jan 7, 2025
1 parent 072ecdb commit 3bd2bb4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/television-utils/src/strings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,10 @@ pub fn replace_non_printable(
{
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
c if c > '\u{0700}' => {
output.push(*NULL_SYMBOL);
Expand Down

0 comments on commit 3bd2bb4

Please sign in to comment.