Sha256: 629fd0f1b6b297a307c42d3f772ad9344dcdbf8a2b68ff15504e2175c2bfdadb

Contents?: true

Size: 177 Bytes

Versions: 9

Compression:

Stored size: 177 Bytes

Contents

# HEX

#### Rules

```ruby
# 1. Pattern
/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/
```

#### Usage

```ruby
class User < ActiveRecord::Base

  validates :input_0, hex: true

end
```

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lite-validators-1.1.0 docs/HEX.md
lite-validators-1.0.7 docs/HEX.md
lite-validators-1.0.6 docs/HEX.md
lite-validators-1.0.5 docs/HEX.md
lite-validators-1.0.4 docs/HEX.md
lite-validators-1.0.3 docs/HEX.md
lite-validators-1.0.2 docs/HEX.md
lite-validators-1.0.1 docs/HEX.md
lite-validators-1.0.0 docs/HEX.md