<commit_before>const {createVariableRule} = require('./lib/variable-rules')

const bgVars = ['$bg-*', '$tooltip-background-color', /var\(--color(-bg|-.*-bg)-.*\)/]

module.exports = createVariableRule('primer/colors', {
  'background-color': {
    expects: 'a background color variable',
    values: bgVars.concat('none', 'transparent')
  },
  background: {
    expects: 'a background color variable',
    values: bgVars.concat('none', 'transparent', 'top', 'right', 'bottom', 'left', 'center', '*px', 'url(*)')
  },<commit_msg>Update bg regex<commit_after>const {createVariableRule} = require('./lib/variable-rules')

const bgVars = [
  '$bg-*',
  '$tooltip-background-color',
  // Match variables in any of the following formats: --color-bg-*, --color-*-bg-*, --color-*-bg
  /var\(--color(-bg-.*|-.*-bg-.*|-.*-bg)\)/
]

module.exports = createVariableRule('primer/colors', {
  'background-color': {
    expects: 'a background color variable',
    values: bgVars.concat('none', 'transparent')
  },
  background: {
    expects: 'a background color variable',
    values: bgVars.concat('none', 'transparent', 'top', 'right', 'bottom', 'left', 'center', '*px', 'url(*)')
  },
{'fraction_non_alphanumeric': 0.226768968456948, 'fraction_numerical': 0.0, 'mean_word_length': 4.126637554585153, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3695257', 'n_tokens_mistral': 385, 'n_tokens_neox': 385, 'n_words': 83}