Sha256: 34de83730cbe4cd7a4d1688bd15a99d7e71c93ea264840b584b39a74bd75da86

Contents?: true

Size: 410 Bytes

Versions: 6

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true

require_relative "utilities"

module Ariadne
  class Classify
    # :nodoc:
    class Validation
      INVALID_CLASS_NAME_PREFIXES = /box-shadow-|box_shadow-/

      class << self
        def invalid?(class_name)
          class_name.start_with?(INVALID_CLASS_NAME_PREFIXES) || Ariadne::Classify::Utilities.supported_selector?(class_name)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.6 lib/ariadne/classify/validation.rb
ariadne_view_components-0.0.5 lib/ariadne/classify/validation.rb
ariadne_view_components-0.0.4 lib/ariadne/classify/validation.rb
ariadne_view_components-0.0.3 lib/ariadne/classify/validation.rb
ariadne_view_components-0.0.2 lib/ariadne/classify/validation.rb
ariadne_view_components-0.0.1 lib/ariadne/classify/validation.rb