Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

+ change length validation for german 3 digit ndcs to be more strict

this could lead to valid german landline numbers not being considered valid.
However, for our use case, we are only interested in mobile numbers...
  • Loading branch information...
commit c5890aeda2cb0ccb51f419556e7a82f9b0f32d89 1 parent 0b6aca1
@jcfischer jcfischer authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/phony/countries/germany.rb
View
2  lib/phony/countries/germany.rb
@@ -4070,6 +4070,6 @@
match(/^(1[567]\d)\d*$/) >> split(3,10) | # Mobile
one_of(ndcs) >> split(3,10) |
fixed(5) >> split(3,10),
- length( 2 => 5..10, 3 => 7..12, 4 => 7..11, 5 => 8..11 )
+ length( 2 => 5..10, 3 => 10..12, 4 => 7..11, 5 => 8..11 )
end
Please sign in to comment.
Something went wrong with that request. Please try again.