diff options
author | Markus Unterwaditzer <markus-honeypot@unterwaditzer.net> | 2021-11-28 00:05:21 +0100 |
---|---|---|
committer | Markus Unterwaditzer <markus-honeypot@unterwaditzer.net> | 2021-11-28 00:05:21 +0100 |
commit | e14abf483b238da4d5b69dbc425b2ab80d1c3e98 (patch) | |
tree | 09801b839a98441793dafa8bd326d5df3f38d201 /src/tokenizer.rs | |
parent | 95afc5359e940398498310d46e81352f04b43a49 (diff) |
clarify what html5gum isn't, fix #5
Diffstat (limited to 'src/tokenizer.rs')
-rw-r--r-- | src/tokenizer.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tokenizer.rs b/src/tokenizer.rs index 7430cbc..ec3ae44 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -158,7 +158,8 @@ impl<R: Reader, E: Emitter> Tokenizer<R, E> { let mut chars = s.chars(); while let Some(c) = self.to_reconsume.pop() { if let (Some(x), Some(x2)) = (c, chars.next()) { - if x == x2 || (!case_sensitive && x.to_ascii_lowercase() == x2.to_ascii_lowercase()) { + if x == x2 || (!case_sensitive && x.to_ascii_lowercase() == x2.to_ascii_lowercase()) + { s = &s[x.len_utf8()..]; continue; } |