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:
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…
Reference in New Issue
Block a user