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.33.0 lib/primer/classify/validation.rb
primer_view_components-0.25.1 lib/primer/classify/validation.rb
openproject-primer_view_components-0.32.1 lib/primer/classify/validation.rb
openproject-primer_view_components-0.32.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.29.1 lib/primer/classify/validation.rb
openproject-primer_view_components-0.29.0 lib/primer/classify/validation.rb
primer_view_components-0.23.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.28.1 lib/primer/classify/validation.rb
openproject-primer_view_components-0.28.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.27.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.26.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.25.1 lib/primer/classify/validation.rb
primer_view_components-0.22.0 lib/primer/classify/validation.rb
primer_view_components-0.21.1 lib/primer/classify/validation.rb
openproject-primer_view_components-0.25.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.24.0 lib/primer/classify/validation.rb
primer_view_components-0.21.0 lib/primer/classify/validation.rb
primer_view_components-0.20.1 lib/primer/classify/validation.rb
primer_view_components-0.20.0 lib/primer/classify/validation.rb
openproject-primer_view_components-0.23.0 lib/primer/classify/validation.rb