Skip to content

Commit

Permalink
Adds 341 area code to US, California
Browse files Browse the repository at this point in the history
  • Loading branch information
boza committed Mar 7, 2023
1 parent 1eef56d commit 33d28f0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
10 changes: 7 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# Changelog

## v0.5.7 - 2023-03-07

* Add new are code for US, California.

## v0.5.6 - 2022-02-28

* Fix pattern match for Brazil regions: PI, PR, RS.
* Fix pattern match for Brazil regions: PI, PR, RS.

## v0.5.5 - 2022-01-20

* Fix pattern match for Russia.
* Fix pattern match for Russia.

## v0.5.4 - 2021-05-20

* Add new area code for US, Florida.
* Add new area code for US, Florida.

## v0.5.3 - 2021-05-15

Expand Down
3 changes: 2 additions & 1 deletion lib/phone/nanp/us/ca.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defmodule Phone.NANP.US.CA do

def regex,
do:
~r/^(1)(209|279|213|310|323|408|415|424|442|510|530|559|562|619|626|628|640|650|657|661|669|707|714|747|760|805|818|820|831|858|909|916|925|949|951)([2-9].{6})$/
~r/^(1)(209|279|213|310|323|341|408|415|424|442|510|530|559|562|619|626|628|640|650|657|661|669|707|714|747|760|805|818|820|831|858|909|916|925|949|951)([2-9].{6})$/

def area_name, do: "California"
def area_type, do: "state"
Expand All @@ -17,6 +17,7 @@ defmodule Phone.NANP.US.CA do
"1279",
"1310",
"1323",
"1341",
"1408",
"1415",
"1424",
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Phone.Mixfile do
use Mix.Project

@source_url "https://github.com/fcevado/phone"
@version "0.5.6"
@version "0.5.7"

def project do
[
Expand Down

0 comments on commit 33d28f0

Please sign in to comment.