MCPcopy Create free account
hub / github.com/microsoft/SandDance / getInitials

Function getInitials

docs/app/js/sanddance-app.js:25468–25474  ·  view source on GitHub ↗
(displayName, isRtl, allowPhoneInitials)

Source from the content-addressed store, hash-verified

25466 return displayName;
25467}
25468function getInitials(displayName, isRtl, allowPhoneInitials) {
25469 if (!displayName) return "";
25470 displayName = cleanupDisplayName(displayName);
25471 // For names containing CJK characters, and phone numbers, we don't display initials
25472 if (UNSUPPORTED_TEXT_REGEX.test(displayName) || !allowPhoneInitials && PHONENUMBER_REGEX.test(displayName)) return "";
25473 return getInitialsLatin(displayName, isRtl);
25474}
25475
25476},{"@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"7xavy":[function(require,module,exports) {
25477var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls 2

cleanupDisplayNameFunction · 0.85
getInitialsLatinFunction · 0.85

Tested by

no test coverage detected