Unified · Split
| @@ -58,9 +58,7 @@ impl Pattern { · 57 unmodified lines | |||
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | fn parse_short_keywords(input: &[u8], cursor: &mut usize) -> Result<MagicSignature, Error> { | 60 | fn parse_short_keywords(input: &[u8], cursor: &mut usize) -> Result<MagicSignature, Error> { |
| 61 | let unimplemented_chars = vec![ | 61 | let unimplemented_chars = b"\"#%&'-',;<=>@_`~"; |
| 62 | b'"', b'#', b'%', b'&', b'\'', b',', b'-', b';', b'<', b'=', b'>', b'@', b'_', b'`', b'~', | ||
| 63 | ]; | ||
| 64 | 62 | ||
| 65 | let mut signature = MagicSignature::empty(); | 63 | let mut signature = MagicSignature::empty(); |
| 66 | while let Some(&b) = input.get(*cursor) { | 64 | while let Some(&b) = input.get(*cursor) { |