Fixes #1084. Opengraph parser fails when value-less properties are present.

This commit is contained in:
Vitor Pamplona
2024-09-16 11:23:41 -04:00
parent 428ed464af
commit 28da06ef01
2 changed files with 33 additions and 1 deletions
@@ -248,7 +248,14 @@ object MetaTagsParser {
}
c.isWhitespace() -> {}
else -> return null
else -> {
// if it is expecting = but gets another name, starts another property
runCatching { attrs.add(Pair(input.slice(nameBegin..<nameEnd), "")) }
nameBegin = i
state = State.NAME
}
}
}