fix: include all of the attribute value
parent
a88d21165c
commit
f25ecbe0cc
2
html.lua
2
html.lua
|
@ -502,7 +502,7 @@ function M.parse_tokens_into_document( TOKENS )
|
||||||
|
|
||||||
|
|
||||||
if in_opening_tag_for then
|
if in_opening_tag_for then
|
||||||
local pattern = "([%w-]+)=['\"](.-)['\"]"
|
local pattern = "([%w-]+)=['\"](.+)['\"]"
|
||||||
|
|
||||||
local name, raw_value = token.value:match(pattern)
|
local name, raw_value = token.value:match(pattern)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue