postcode_validation 0.0.13 → 0.0.14
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6500c283bbada3eb51bccd8d5b52f36a82ef4932
|
4
|
+
data.tar.gz: 2eda7cb1dd52fcdbdb8cc1798da7aa8130dc590f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b88ab8fe5aa182e50ff2c96d351e2a2553656f0a6e652be5fdde061488b4df239cf59917004a0c1a4cfd1effd7ac480c55f21555233179fdf9407fb8fd7e3229
|
7
|
+
data.tar.gz: 6fdc7957eb24b06cc2c9647e82c785af9a3bd171eebef0ae55269ae810cd4dee78009b47561c441797ca7cb905f0354423cd104cc7ce756cbaabb99bdbc1d4d2
|
@@ -14,7 +14,9 @@ module PostcodeValidation
|
|
14
14
|
check_country(country)
|
15
15
|
|
16
16
|
if country == 'SG'
|
17
|
-
|
17
|
+
if check_postcode_format(postcode_without_spaces(postcode), country)
|
18
|
+
return { valid?: true, reason: ['valid_postcode'] }
|
19
|
+
end
|
18
20
|
end
|
19
21
|
|
20
22
|
check_postcode_format(postcode, country)
|