ykt-team-wxapp/utils/ai-consult-display.js

5 lines
164 B
JavaScript
Raw Normal View History

2026-08-24 14:00:38 +08:00
export function removeAiLabel(value, fallback = '') {
const text = typeof value === 'string' ? value.replace(/AI/g, '').trim() : '';
return text || fallback;
}