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.36.5 lib/primer/classify/validation.rb
openproject-primer_view_components-0.52.2 lib/primer/classify/validation.rb
primer_view_components-0.36.4 lib/primer/classify/validation.rb
openproject-primer_view_components-0.52.1 lib/primer/classify/validation.rb
openproject-primer_view_components-0.52.0 lib/primer/classify/validation.rb
primer_view_components-0.36.3 lib/primer/classify/validation.rb
openproject-primer_view_components-0.51.0 lib/primer/classify/validation.rb
primer_view_components-0.36.2 lib/primer/classify/validation.rb
openproject-primer_view_components-0.50.1 lib/primer/classify/validation.rb
openproject-primer_view_components-0.50.0 lib/primer/classify/validation.rb
primer_view_components-0.36.1 lib/primer/classify/validation.rb
primer_view_components-0.36.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.49.2 lib/primer/classify/validation.rb
primer_view_components-0.35.2 lib/primer/classify/validation.rb
openproject-primer_view_components-0.49.1 lib/primer/classify/validation.rb
openproject-primer_view_components-0.49.0 lib/primer/classify/validation.rb
primer_view_components-0.35.1 lib/primer/classify/validation.rb
primer_view_components-0.35.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.48.2 lib/primer/classify/validation.rb
openproject-primer_view_components-0.48.1 lib/primer/classify/validation.rb