mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 13:27:47 +01:00
Fixes bug when trying to detect the charset of the first 1024 bytes of the page. Since this is an invalid HTML, it was crashing here.
This commit is contained in:
@@ -82,6 +82,7 @@ object MetaTagsParser {
|
||||
|
||||
fun nextTag(): RawTag? {
|
||||
skipWhile { it != '<' }
|
||||
if (this.exhausted()) return null
|
||||
consume()
|
||||
|
||||
// read tag name
|
||||
|
||||
Reference in New Issue
Block a user