Sha256: f3f9d6cd67280cb649bda0d6f22c777ec4628c94e6a4157d0eabf67f224441cc

Contents?: true

Size: 117 Bytes

Versions: 10

Compression:

Stored size: 117 Bytes

Contents

# frozen_string_literal: true

class SsnValidator < BaseValidator

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

end

Version data entries

10 entries across 10 versions & 1 rubygems

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