From f25ecbe0cc11eb55fa96643abf310f5604847e30 Mon Sep 17 00:00:00 2001 From: Guilian Date: Sat, 25 Jan 2025 17:00:18 +0100 Subject: [PATCH] fix: include all of the attribute value --- html.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html.lua b/html.lua index 02762e2..07815fd 100644 --- a/html.lua +++ b/html.lua @@ -502,7 +502,7 @@ function M.parse_tokens_into_document( TOKENS ) if in_opening_tag_for then - local pattern = "([%w-]+)=['\"](.-)['\"]" + local pattern = "([%w-]+)=['\"](.+)['\"]" local name, raw_value = token.value:match(pattern)