Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix
  • Loading branch information
a-x- authored Feb 27, 2018
commit aa02221b24f8bd71ea3393215736583d1bbca732
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const localizeSelectors = (selectors, mode, getAlias) => {

const walkRules = (css, callback) => {
css.walkRules(rule => {
if (rule.parent && rule.parent.type !== "atrule" || !/keyframes$/.test(rule.parent.name)) {
if (rule.parent && (rule.parent.type !== "atrule" || !/keyframes$/.test(rule.parent.name))) {
callback(rule);
}
});
Expand Down