Skip to content

Commit

Permalink
Merge pull request #139 from fcevado/v052
Browse files Browse the repository at this point in the history
  • Loading branch information
fcevado authored Dec 29, 2020
2 parents 0c7c703 + 7b3f9ae commit 53f02f9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
23 changes: 14 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,42 @@
# Changelog

## v0.5.2

* Update regex for Jamaica to support new region code.
* Fix typo on Saint Vincent and the Grenadines country name.

## v0.5.1

* Update regex for Singapore to support 10 digits number.
* Update regex for Singapore to support 10 digits number.

## v0.5.0

* Add support to region codes for Spain.
* Add support to region codes for Spain.

## v0.4.11

* Update regex for Belgium.
* Update regex for Belgium.

## v0.4.10

* Add new area codes for US, California.
* Update regex for Netherlands
* Add new area codes for US, California.
* Update regex for Netherlands

## v0.4.9

* Add Vancouver missing area code
* Add Vancouver missing area code

## v0.4.8

* Add brazilian toll free numbers
* Add brazilian toll free numbers

## v0.4.6

* Fix max length for German numbers to 11
* Fix max length for German numbers to 11

## v0.4.5

* Fix Italy regex to consider 3 minimum digits and max 12
* Fix Italy regex to consider 3 minimum digits and max 12

## v0.4.4:
* Fix Australia regex
Expand Down
4 changes: 2 additions & 2 deletions lib/phone/nanp/jm.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ defmodule Phone.NANP.JM do

use Helper.Country

def regex, do: ~r/^(1)(876)([2-9].{6})$/
def regex, do: ~r/^(1)(658|876)([2-9].{6})$/
def country, do: "Jamaica"
def a2, do: "JA"
def a3, do: "JAM"

matcher(:regex, ["1876"])
matcher(:regex, ["1658", "1876"])
end
2 changes: 1 addition & 1 deletion lib/phone/nanp/vc.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Phone.NANP.VC do
use Helper.Country

def regex, do: ~r/^(1)(784)([2-9].{6})$/
def country, do: "Saint Vicent and the Grenadines"
def country, do: "Saint Vincent and the Grenadines"
def a2, do: "VC"
def a3, do: "VCT"

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Phone.Mixfile do
def project do
[
app: :phone,
version: "0.5.1",
version: "0.5.2",
elixir: ">= 1.1.0",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
Expand Down

0 comments on commit 53f02f9

Please sign in to comment.