From 4e96893bf827f55b3f01a0f36e67c782502a6648 Mon Sep 17 00:00:00 2001 From: Mathias Picker Date: Fri, 8 Jul 2022 23:25:55 +0200 Subject: [PATCH] fixed array of characters to match original regex --- src/compiler/parse/state/tag.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/parse/state/tag.ts b/src/compiler/parse/state/tag.ts index 3ed65940f2..a5d934e3c1 100644 --- a/src/compiler/parse/state/tag.ts +++ b/src/compiler/parse/state/tag.ts @@ -473,7 +473,7 @@ function read_attribute_value(parser: Parser) { let value; try { - const characters = quote_mark ? [quote_mark] : [...whitespace_characters, '/>', '"', '"', '=', '<', '>', '`']; + const characters = quote_mark ? [quote_mark] : [...whitespace_characters, '/>', '"', '\'', '=', '<', '>', '`']; value = read_sequence(parser, () => characters.some(c => parser.match(c))); } catch (error) { if (error.code === 'parse-error') {