longz
2026-07-13 5882ba8863d77fdcc168b176c3ffb30e8a20556a
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*/, '')
}