Skip to content

Commit

Permalink
fix: issue #298
Browse files Browse the repository at this point in the history
  • Loading branch information
francoismassart committed Feb 5, 2024
1 parent e0192ff commit 6177743
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/groupMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function generateOptions(propName, keys, config, isNegative = false) {
case 'dropShadow':
case 'transitionProperty':
// Forbidden prefixes
escapedKeys.push(`\\[(?!((angle|color|length|list)\:)|var\\().{1,}\\]`);
escapedKeys.push(`\\[(?!((angle|color|length|list)\:)|#|var\\().{1,}\\]`);
return '(' + escapedKeys.join('|') + ')';
case 'backgroundSize':
// Forbidden prefixes
Expand Down
3 changes: 3 additions & 0 deletions tests/lib/rules/no-contradicting-classname.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@ ruleTester.run("no-contradicting-classname", rule, {
{
code: `<div class="diagonal-fractions tabular-nums lining-nums">Font Variant Numeric #316</div>`,
},
{
code: `<div class="shadow-md shadow-[#aabbcc]">Issue #298</div>`,
},
],

invalid: [
Expand Down

0 comments on commit 6177743

Please sign in to comment.