fixed array of characters to match original regex

pull/7663/head
Mathias Picker 4 years ago
parent 990f572110
commit 4e96893bf8

@ -473,7 +473,7 @@ function read_attribute_value(parser: Parser) {
let value; let value;
try { 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))); value = read_sequence(parser, () => characters.some(c => parser.match(c)));
} catch (error) { } catch (error) {
if (error.code === 'parse-error') { if (error.code === 'parse-error') {

Loading…
Cancel
Save