Sha256: a5b7456b7b356c86cdf74708b46557209f60de7ef52b6ca699703e346b71e282
Contents?: true
Size: 438 Bytes
Versions: 4
Compression:
Stored size: 438 Bytes
Contents
# frozen_string_literal: true require_relative "utilities" module Primer class Classify # :nodoc: class Validation INVALID_CLASS_NAME_PREFIXES = /bg-|color-|text-|box-shadow-|text-|box_shadow-/.freeze class << self def invalid?(class_name) class_name.start_with?(INVALID_CLASS_NAME_PREFIXES) || Primer::Classify::Utilities.supported_selector?(class_name) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems