Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fixes #267] fixes length' of undefined error, russian and german phone numbers #268

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/js/bootstrap-formhelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -7965,7 +7965,7 @@ var BFHPhoneFormatList = {
'TF': '+262 ddddddddd',
'GA': '+241 ddddddddd',
'GE': '+995 ddddddddd',
'DE': '+49 ddddddddd',
'DE': '+49 dddddddddd',
'GH': '+233 ddddddddd',
'GI': '+350 ddddddddd',
'GR': '+30 ddddddddd',
Expand Down Expand Up @@ -8058,7 +8058,7 @@ var BFHPhoneFormatList = {
'QA': '+974 ddddddddd',
'RE': '+262 ddddddddd',
'RO': '+40 ddddddddd',
'RU': '+7 ddddddddd',
'RU': '+7 dddddddddd',
'RW': '+250 ddddddddd',
'ST': '+239 ddddddddd',
'SH': '+290 ddddddddd',
Expand Down
1 change: 1 addition & 0 deletions js/bootstrap-formhelpers-phone.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@

formattedNumber = '';
number = String(number).replace(/\D/g, '');
format = String(format);

for (indexFormat = 0, indexNumber = 0; indexFormat < format.length; indexFormat = indexFormat + 1) {
if (/\d/g.test(format.charAt(indexFormat))) {
Expand Down
2 changes: 1 addition & 1 deletion js/lang/en_US/bootstrap-formhelpers-phone.en_US.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ var BFHPhoneFormatList = {
'TF': '+262 ddddddddd',
'GA': '+241 ddddddddd',
'GE': '+995 ddddddddd',
'DE': '+49 ddddddddd',
'DE': '+49 dddddddddd',
'GH': '+233 ddddddddd',
'GI': '+350 ddddddddd',
'GR': '+30 ddddddddd',
Expand Down