Skip to content

Commit

Permalink
fix stupid lint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
9brada6 committed Nov 17, 2022
1 parent 792b98f commit 3c91f1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/style-ast.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ class StyleAST {
}

// Make all global colors and global typographies with only one digit be available.
let awbColorWithSingleDigit = '(color|custom_color_\d(\D|$))';
let awbTypoWithSingleDigit = '(typography|custom_typography_\d(\D|$))';
let colorOrTypoVars = new RegExp( '--awb-(' + awbColorWithSingleDigit + '|' + awbTypoWithSingleDigit + ')' );
const colorOrTypoVars = new RegExp(
/--awb-((color|custom_color_\d(\D|$))|(typography|custom_typography_\d(\D|$)))/
);
if ( colorOrTypoVars.test( declaration.property ) ) {
return;
}
Expand Down

0 comments on commit 3c91f1f

Please sign in to comment.