MCPcopy Create free account
hub / github.com/apitable/apitable / hiddenMobile

Function hiddenMobile

packages/core/src/utils/string.ts:119–121  ·  view source on GitHub ↗
(mobileNumber: string)

Source from the content-addressed store, hash-verified

117
118// Hide the middle 4 digits of the phone number
119export function hiddenMobile(mobileNumber: string): string {
120 return mobileNumber.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
121}
122
123export function parseAllUrl(value: string): ISegment[] {
124 const valueArray: ISegment[] = [];

Callers 7

SelectAdminFunction · 0.90
getVerifyDataFunction · 0.90
mobileContentFunction · 0.90
VerifyFunction · 0.90
UnBindModalFunction · 0.90
ChooseAccountTypeFunction · 0.90
UserMenuFunction · 0.90

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected