Class: MacAddressValidator
- Inherits:
-
BaseValidator
- Object
- ActiveModel::EachValidator
- BaseValidator
- MacAddressValidator
- Defined in:
- lib/lite/validators/mac_address_validator.rb
Constant Summary collapse
- REGEXP =
[ /^(\h{2}[-|.:\s]){5}\h{2}?$/i, /^(\h{4}[-|.:\s]){2}\h{4}?$/i, /^(\h{6}[-|.:\s])\h{6}?$/i, /^\h{12}?$/i ].freeze