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
openproject-primer_view_components-0.48.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.47.1 lib/primer/classify/validation.rb
openproject-primer_view_components-0.47.0 lib/primer/classify/validation.rb
primer_view_components-0.34.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.46.1 lib/primer/classify/validation.rb
openproject-primer_view_components-0.46.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.45.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.44.3 lib/primer/classify/validation.rb
openproject-primer_view_components-0.44.2 lib/primer/classify/validation.rb
openproject-primer_view_components-0.44.1 lib/primer/classify/validation.rb
primer_view_components-0.33.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.44.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.43.1 lib/primer/classify/validation.rb
openproject-primer_view_components-0.43.0 lib/primer/classify/validation.rb
primer_view_components-0.32.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.42.0 lib/primer/classify/validation.rb
primer_view_components-0.31.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.41.1 lib/primer/classify/validation.rb
openproject-primer_view_components-0.41.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.40.0 lib/primer/classify/validation.rb