ykt-team-wxapp/utils/ai-consult-display.js
2026-08-24 14:00:38 +08:00

5 lines
164 B
JavaScript

export function removeAiLabel(value, fallback = '') {
const text = typeof value === 'string' ? value.replace(/AI/g, '').trim() : '';
return text || fallback;
}