longz
2026-07-08 700f9d0da314a4ea701fe9f68d305b67d72ec5fb
1
2
3
4
5
6
7
8
9
10
export function normalizeVisitReasonText(text?: string | null) {
  const raw = (text || '').trim()
  if (!raw) {
    return ''
  }
  if (raw.toUpperCase() === 'OTHER') {
    return '其他'
  }
  return raw.replace(/^其他[::]\s*/, '')
}