Skip to content

Commit

Permalink
Merge pull request #124 from igorffs/master
Browse files Browse the repository at this point in the history
Increase Italian digits number
  • Loading branch information
fcevado committed Jul 2, 2019
2 parents 3efc0f2 + 57d629a commit 0d78b47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog


## v0.4.5

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

## v0.4.4:
* Fix Australia regex
* Fix Ireland regex
Expand Down
2 changes: 1 addition & 1 deletion lib/phone/it.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Phone.IT do

use Helper.Country

def regex, do: ~r/^(39)()(.{9,10})/
def regex, do: ~r/^(39)()(.{3,12})/
def country, do: "Italy"
def a2, do: "IT"
def a3, do: "ITA"
Expand Down

0 comments on commit 0d78b47

Please sign in to comment.