Skip to content

Commit

Permalink
fixed sveltejs#7782 Changed regex_invalid_unquoted_attribute_value wi…
Browse files Browse the repository at this point in the history
…th new expression which now supports = followed by / only.
  • Loading branch information
Pallavrai committed Aug 31, 2024
1 parent cf6b64c commit 15c8088
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { get_attribute_expression, is_expression_attribute } from '../../../util
import { closing_tag_omitted } from '../../../../html-tree-validation.js';
import { list } from '../../../utils/string.js';

const regex_invalid_unquoted_attribute_value = /^(\/>|[\s"'=<>`])/;
const regex_invalid_unquoted_attribute_value = /^(\/>|[\s"'<>`]|=[^/])/;
const regex_closing_textarea_tag = /^<\/textarea(\s[^>]*)?>/i;
const regex_closing_comment = /-->/;
const regex_whitespace_or_slash_or_closing_tag = /(\s|\/|>)/;
Expand Down

0 comments on commit 15c8088

Please sign in to comment.