Skip to content
Myr

formatting

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by curious-rabbit · committed by curious-rabbit · parent aeecb5d · Browse files · 1 file+9 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−2 removed

  • other:+9 added−2 removed

1 file+9 added−2 removed

modified:src/sanitize.rs+9 added-2 removed
131 unmodified lines
132 #[test]133 fn keeps_legitimate_unicode_features() {134 // Variation selectors (U+FE0F, U+E0100..) modify preceding glyphs in CJK/emoji135 // and are legitimate in filenames. Private-use chars are used by icon fonts.136 for s in ["heart\u{2764}\u{FE0F}.txt", "icon\u{E000}.cfg", "cjk\u{6F22}\u{E0101}.txt"] {137 assert!(matches!(sanitize_for_terminal(s), Cow::Borrowed(_)), "{s:?}");136 for s in [137 "heart\u{2764}\u{FE0F}.txt",138 "icon\u{E000}.cfg",139 "cjk\u{6F22}\u{E0101}.txt",140 ] {141 assert!(142 matches!(sanitize_for_terminal(s), Cow::Borrowed(_)),143 "{s:?}"144 );145 }146 }147}