Sha256: 7b03b096155f6b6197be3eeb26f13245c8bfafb96f7388dbdae6c4dd3ffc565a

Contents?: true

Size: 126 Bytes

Versions: 3

Compression:

Stored size: 126 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

3 entries across 3 versions & 1 rubygems

Version Path
lite-validators-1.1.1 lib/lite/validators/ssn_validator.rb
lite-validators-1.1.0 lib/lite/validators/ssn_validator.rb
lite-validators-1.0.7 lib/lite/validators/ssn_validator.rb