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;
|
break;
|
||||||
},
|
},
|
||||||
_ => { pb.add_char(*q); }
|
|
||||||
|
// Only process sane characters
|
||||||
|
'a'..='z' | 'A'..='Z' | '0'..='9'
|
||||||
|
|'!'|'@'|'#'|'$'|'%'|'^'|'&'|'*'|'('|')'
|
||||||
|
|'?'|'~'|','|'.'|'['|']'
|
||||||
|
|'<'|'>'|'/'|'_'|'-'|':'|'|'|'='|'+'|';'
|
||||||
|
=> { pb.add_char(*q); },
|
||||||
|
|
||||||
|
_ => {}
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
match c.unwrap() {
|
match c.unwrap() {
|
||||||
|
|
Loading…
Reference in New Issue