Sha256: 211e03c5bf12404ee6aa0711a574a1e6b4b68a11082b03d78562a217fdb93a73
Contents?: true
Size: 435 Bytes
Versions: 2
Compression:
Stored size: 435 Bytes
Contents
# frozen_string_literal: true require_relative "utilities" module Primer class Classify # :nodoc: class Validation INVALID_CLASS_NAME_PREFIXES = /bg-|color-bg-|text-|box-shadow-|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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
primer_view_components-0.0.57 | lib/primer/classify/validation.rb |
primer_view_components-0.0.56 | lib/primer/classify/validation.rb |