We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Cf
PrintableString
1 parent c1c66e7 commit 907dd41Copy full SHA for 907dd41
1 file changed
lightning-types/src/string.rs
@@ -67,7 +67,7 @@ fn is_format_char(c: char) -> bool {
67
| 0xFFF9..=0xFFFB
68
| 0x110BD
69
| 0x110CD
70
- | 0x13430..=0x13440
+ | 0x13430..=0x1343F
71
| 0x1BCA0..=0x1BCA3
72
| 0x1D173..=0x1D17A
73
| 0xE0001
@@ -101,5 +101,12 @@ mod tests {
101
"PrintableString left a U+202E RLO override in its output: {:?}",
102
rendered
103
);
104
+
105
+ // U+13440 is in the Egyptian Hieroglyph Format Controls block, but its
106
+ // general category is `Mn`, not `Cf`, so the `Cf` range ends at U+1343F.
107
+ assert_eq!(
108
+ format!("{}", PrintableString("x\u{1343F}y\u{13440}z")),
109
+ "x\u{FFFD}y\u{13440}z"
110
+ );
111
}
112
0 commit comments