Skip to content

Commit

Permalink
add support for eight-value hex colors - closes #341
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadYounes authored Jul 22, 2024
1 parent f84666d commit 6bfba56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const REGEX_COMMENT = /\/\*[^]*?\*\//igm // non-greedy
const REGEX_DIRECTIVE = /\/\*\s*!?\s*rtl:[^]*?\*\//img
const REGEX_ESCAPE = /[.*+?^${}()|[\]\\]/g
const REGEX_FUNCTION = /\([^()]+\)/i
const REGEX_HEX_COLOR = /#[a-f0-9]{3,6}/ig
const REGEX_HEX_COLOR = /#[a-f0-9]{3,8}/ig
const REGEX_CALC = /calc/
const REGEX_TOKENS = new RegExp(PATTERN_TOKEN, 'ig')
const REGEX_TOKENS_WITH_NAME = new RegExp(PATTERN_TOKEN_WITH_NAME, 'ig')
Expand Down

0 comments on commit 6bfba56

Please sign in to comment.