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

pull/2966/head
Richard Harris 6 years ago
commit 3895a89c3b

@ -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);
});
}

Loading…
Cancel
Save