Sha256: 8535378d97fc69b43dbc874cf001f42d47b0f91cb87474a0c6e52c750b76881d

Contents?: true

Size: 421 Bytes

Versions: 204

Compression:

Stored size: 421 Bytes

Contents

# frozen_string_literal: true

require_relative "utilities"

module Primer
  class Classify
    # :nodoc:
    class Validation
      INVALID_CLASS_NAME_PREFIXES = /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

204 entries across 204 versions & 2 rubygems

Version Path
primer_view_components-0.30.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.39.1 lib/primer/classify/validation.rb
openproject-primer_view_components-0.39.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.38.0 lib/primer/classify/validation.rb
primer_view_components-0.29.0 lib/primer/classify/validation.rb
primer_view_components-0.28.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.37.1 lib/primer/classify/validation.rb
openproject-primer_view_components-0.37.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.36.2 lib/primer/classify/validation.rb
openproject-primer_view_components-0.36.1 lib/primer/classify/validation.rb
openproject-primer_view_components-0.36.0 lib/primer/classify/validation.rb
primer_view_components-0.27.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.35.2 lib/primer/classify/validation.rb
openproject-primer_view_components-0.35.1 lib/primer/classify/validation.rb
primer_view_components-0.26.1 lib/primer/classify/validation.rb
openproject-primer_view_components-0.35.0 lib/primer/classify/validation.rb
primer_view_components-0.26.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.34.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.33.2 lib/primer/classify/validation.rb
openproject-primer_view_components-0.33.1 lib/primer/classify/validation.rb