wupengfei
5 天以前 bd000e6f03f650cf184f404d63356e9eddf57425
packages/utils/common.ts
@@ -53,6 +53,7 @@
 * @returns
 */
export function addStarForString(str: string, start = 0, end = 0) {
  if (!str) return '';
  return str.substring(0, start) + '*'.repeat(end - start) + str.substring(end);
}