您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

functions.js 415B

12345678910111213
  1. // @flow
  2. /**
  3. * Appends a suffix to the display name.
  4. *
  5. * @param {string} displayName - The display name.
  6. * @param {string} suffix - Suffix that will be appended.
  7. * @returns {string} The formatted display name.
  8. */
  9. export function appendSuffix(displayName: string, suffix: string = '') {
  10. return `${displayName || suffix}${
  11. displayName && suffix && displayName !== suffix ? ` (${suffix})` : ''}`;
  12. }