0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00

Merge branch 'fix-2929' of https://github.com/qintarp/svelte into qintarp-fix-2929

This commit is contained in:
Richard Harris 2019-06-06 07:38:50 -04:00
commit 3895a89c3b

View File

@ -239,7 +239,7 @@ function attribute_matches(node: Node, name: string, expected_value: string, ope
function class_matches(node, name: string) {
return node.classes.some(function(class_directive) {
return class_directive.name === name;
return new RegExp(`\\b${name}\\b`).test(class_directive.name);
});
}