Skip to content

Commit

Permalink
Allow for international Numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
1jeanpaul1 authored Jan 16, 2024
1 parent 77b8eb3 commit 0bcad80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
</head>
<body>
<div class="container">
<p>Last Updated: Jan 16, 2024 2:44PM</p>
<p>Last Updated: Jan 16, 2024 2:48PM</p>
<h2 id="header">Select an Airtable view as a CSV file</h2>
<label for="csvFile">Drag and drop a CSV file or click to select one:</label>
<div class="input-wrapper">
Expand Down Expand Up @@ -342,7 +342,7 @@ <h2 id="header">Select an Airtable view as a CSV file</h2>
let cleanNumber = phoneNumber.replace(/\D/g, "");
if (cleanNumber.length === 10) {
cleanNumber = "+1" + cleanNumber;
} else if (cleanNumber.length === 11 && cleanNumber.charAt(0) === "1") {
} else if (cleanNumber.length === 11) {
cleanNumber = "+" + cleanNumber;
}
return cleanNumber;
Expand Down

0 comments on commit 0bcad80

Please sign in to comment.