Sha256: c5ca1ade74144f7a2483a74ff3d28a125d3f04f60cfa64d566d0aaf4c41d3feb

Contents?: true

Size: 136 Bytes

Versions: 7

Compression:

Stored size: 136 Bytes

Contents

# frozen_string_literal: true

class SsnValidator < BaseValidator

  REGEXP ||= /^\A([\d]{3}\-[\d]{2}\-[\d]{4}|[\d]{9})\Z$/.freeze

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lite-validators-1.0.6 lib/lite/validators/ssn_validator.rb
lite-validators-1.0.5 lib/lite/validators/ssn_validator.rb
lite-validators-1.0.4 lib/lite/validators/ssn_validator.rb
lite-validators-1.0.3 lib/lite/validators/ssn_validator.rb
lite-validators-1.0.2 lib/lite/validators/ssn_validator.rb
lite-validators-1.0.1 lib/lite/validators/ssn_validator.rb
lite-validators-1.0.0 lib/lite/validators/ssn_validator.rb