Skip to content

Commit

Permalink
allows 10 digits for Singapore numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkovsky committed May 6, 2020
1 parent 996332c commit 83108ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/phone/sg.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ defmodule Phone.SG do
@moduledoc false

use Helper.Country

def regex, do: ~r/^(65)()(.{8})/
def regex, do: ~r/^(65)()(.{10}|.{8})/
def country, do: "Singapore"
def a2, do: "SG"
def a3, do: "SGP"
Expand Down

0 comments on commit 83108ab

Please sign in to comment.