Support \x00 and \x01 as valid D characters

This commit is contained in:
2022-10-23 15:46:41 +02:00
parent 7355879a35
commit 51120a0c55

View File

@@ -36,7 +36,7 @@ impl CDStringValidator for DStringValidator {
for chr in value {
let chr = *chr as char;
if !matches!(chr, '0'..='9' | 'A'..='Z' | '_') {
if !matches!(chr, '\x00' | '\x01' | '0'..='9' | 'A'..='Z' | '_') {
return Err(Error::GenericError(format!("{} not a valid d-character", chr)));
}
}