Skip to content
Prev Previous commit
Next Next commit
Merge branch 'master' into eslint
  • Loading branch information
Rich-Harris authored Jun 6, 2019
commit fa1ee4be9ccd57efb794de65e72f421621aaa152
2 changes: 1 addition & 1 deletion src/compiler/compile/css/Selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function attribute_matches(node: Node, name: string, expected_value: string, ope

function class_matches(node, name: string) {
return node.classes.some((class_directive) => {
return class_directive.name === name;
return new RegExp(`\\b${name}\\b`).test(class_directive.name);
});
}

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.