/**
 * Validate if a property is a valid CSS one.
 *
 * @param {string} prop
 * @return {boolean} Whether or not the property is valid (true = valid)
 */

const RE_VALID_CSS_PROPERTY = /^[a-z-]+$/

export default function (prop) {
  return RE_VALID_CSS_PROPERTY.test(prop)
}

/**
 * Validate if a property is a valid CSS one.
 *
 * @param {string} prop
 * @return {boolean} Whether or not the property is valid (true = valid)
 */

export default function (prop) {
  // The validation is done by checking if the property
  // is not a SCSS/LESS variable
  return prop[0] !== "$" && prop[0] !== "@"
}

Validate CSS props by checking if its not a SCSS/LESS variable
Validate CSS props by checking if its not a SCSS/LESS variable
