mirror of
https://github.com/rm-dr/daisy
synced 2025-02-21 06:29:26 -08:00
Added character limits
This commit is contained in:
parent
c8ebec59ae
commit
9f9cc5d084
10
src/main.rs
10
src/main.rs
@ -98,7 +98,15 @@ pub fn main() -> Result<(), std::io::Error> {
|
||||
|
||||
break;
|
||||
},
|
||||
_ => { pb.add_char(*q); }
|
||||
|
||||
// Only process sane characters
|
||||
'a'..='z' | 'A'..='Z' | '0'..='9'
|
||||
|'!'|'@'|'#'|'$'|'%'|'^'|'&'|'*'|'('|')'
|
||||
|'?'|'~'|','|'.'|'['|']'
|
||||
|'<'|'>'|'/'|'_'|'-'|':'|'|'|'='|'+'|';'
|
||||
=> { pb.add_char(*q); },
|
||||
|
||||
_ => {}
|
||||
};
|
||||
} else {
|
||||
match c.unwrap() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user