fix undefined number
This commit is contained in:
parent
ac279cfbdb
commit
03497a3fb9
1 changed files with 1 additions and 1 deletions
|
|
@ -205,7 +205,7 @@ export function saferKorean(input: string): string {
|
|||
|
||||
// Process number, unit
|
||||
.replace(/(\+\d+[\s\-]+)?([\d\-]+)/g, (_, prefix: string, phone: string) => {
|
||||
const all = prefix + phone;
|
||||
const all = (prefix ?? "") + phone;
|
||||
if (!phone.includes("-")) return all;
|
||||
return PhoneNumberKorean.convert(all);
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue