Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Fix phoneNumberMatch.replace
Browse files Browse the repository at this point in the history
  • Loading branch information
seia-soto committed Feb 20, 2021
1 parent d54c6f3 commit ca890bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const init = async () => {
process.exit(0)
}

const phoneNumber = phoneNumberMatch.replace(/\s/g, '')
const phoneNumber = phoneNumberMatch[0].replace(/\s/g, '')
const [, phoneNumberNation, phoneNumberUser] = phoneNumberMatch

const profile = {
Expand Down

0 comments on commit ca890bb

Please sign in to comment.