phonelib 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 645bc647028fe40b433ead8b1c9a166864ee5b40
4
- data.tar.gz: a6df0fe446da6ed05503347d8d446c245fc4721c
3
+ metadata.gz: 7d84348d907c2618201a1a2211f37ee0d0300e2e
4
+ data.tar.gz: 96c7a5ab1a65d30bc33df7dbb90d885b4b668c62
5
5
  SHA512:
6
- metadata.gz: 77f9bad01bebe45a4663bd3ccf983c26612daf92596bb8e19a93f7649aea4214d01be4f265e9e9eb0034dca626a70b1c6e0b25568fe737f663ccfe4fbbe7b53d
7
- data.tar.gz: 17bcca2fdca997263cfb27f67509170123bc4d14ead4a123fd70fe82a1abbf800256bebac2ac6587784d9291de919f8b1eb1523183c10f3a7f9d196087f542dd
6
+ metadata.gz: e9ef957df8298aad785b2043932089f7dcaa2378bf94763f14f0e4891824eba9fda7a3ee16a3f87f436a8a1512361d470b585743011e998c62b866b00f5315fd
7
+ data.tar.gz: 7ff3b5537a60b186d661c54525587cab0d619d66401422f324c60144f9d81a262c50fd042f676c371b3d5c95a5cd63f221dff2559864746a2a124dd186446e3f
@@ -36,7 +36,7 @@ module Phonelib
36
36
  # @return [String] Sanitized phone number
37
37
  def sanitized
38
38
  @sanitized = if Phonelib.strict_check
39
- @original || ''
39
+ @original && @original.gsub(/^\+/, '') || ''
40
40
  else
41
41
  @original && @original.gsub(/[^0-9]+/, '') || ''
42
42
  end
@@ -1,4 +1,4 @@
1
1
  module Phonelib
2
2
  # @private
3
- VERSION = '0.6.4'
3
+ VERSION = '0.6.5'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phonelib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vadim Senderovich