Sha256: 525d5b41e2f3411d29f6138ca64763602429db85afbfe4df616ad0ebdc75fc68

Contents?: true

Size: 121 Bytes

Versions: 10

Compression:

Stored size: 121 Bytes

Contents

# frozen_string_literal: true

class HexValidator < BaseValidator

  REGEXP = /^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
lite-validators-1.8.0 lib/lite/validators/hex_validator.rb
lite-validators-1.7.2 lib/lite/validators/hex_validator.rb
lite-validators-1.7.1 lib/lite/validators/hex_validator.rb
lite-validators-1.7.0 lib/lite/validators/hex_validator.rb
lite-validators-1.6.0 lib/lite/validators/hex_validator.rb
lite-validators-1.5.0 lib/lite/validators/hex_validator.rb
lite-validators-1.4.0 lib/lite/validators/hex_validator.rb
lite-validators-1.3.2 lib/lite/validators/hex_validator.rb
lite-validators-1.3.1 lib/lite/validators/hex_validator.rb
lite-validators-1.3.0 lib/lite/validators/hex_validator.rb