From ca890bba96ec5a1ebf56a69df11b4a3457342b75 Mon Sep 17 00:00:00 2001 From: Seia-Soto Date: Sun, 21 Feb 2021 05:15:36 +0900 Subject: [PATCH] Fix phoneNumberMatch.replace --- scripts/profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/profile.js b/scripts/profile.js index caf5219..f5632a0 100644 --- a/scripts/profile.js +++ b/scripts/profile.js @@ -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 = {