Skip to content

Commit

Permalink
Fix build appveyor build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
efeskucuk committed Jun 3, 2019
1 parent ddd4a33 commit bef6f15
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/compiler/compile/css/Selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +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) {
name = new RegExp(`\\b${name}\\b`);
return name.test(class_directive.name);
return new RegExp(`\\b${name}\\b`).test(class_directive.name);
});
}

Expand Down

0 comments on commit bef6f15

Please sign in to comment.