Support \x00 and \x01 as valid D characters

This commit is contained in:
Jaby 2022-10-23 15:46:41 +02:00 committed by Jaby
parent 5fef143171
commit 84761adc14
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ impl CDStringValidator for DStringValidator {
for chr in value { for chr in value {
let chr = *chr as char; 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))); return Err(Error::GenericError(format!("{} not a valid d-character", chr)));
} }
} }