Files
web_hgdjc_h5/src/lib/brand.ts
T
2026-11-06 00:13:27 +07:00

10 lines
400 B
TypeScript

/** 站点品牌名。后台文案、页面标题与页脚统一使用。 */
export const SITE_NAME = "黄果短剧";
/** 后台文案里残留的旧站名统一换成 SITE_NAME。 */
const LEGACY_SITE_NAMES = /禁果短剧|91短剧|黄豆魔改短剧|黄豆短剧/g;
export function brandText(value?: string | null): string {
return (value || "").trim().replace(LEGACY_SITE_NAMES, SITE_NAME);
}