fix range to include \n

This commit is contained in:
Robin Malfait 2022-11-30 01:03:14 +01:00
parent cceb585777
commit b643c9e669
No known key found for this signature in database
GPG key ID: 92F53D68B9041AFE

View file

@ -319,7 +319,7 @@ impl<'a> Extractor<'a> {
fn can_be_candidate(&mut self, c: u8) -> bool {
self.in_candidate
&& !self.in_arbitrary
&& (13..=127).contains(&c)
&& (0..=127).contains(&c)
&& (self.idx_start == 0 || self.input[(self.idx_start - 1)] <= 127)
}