mirror of https://github.com/rm-dr/daisy
Added character limits
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…
Reference in New Issue