puzhibing
2026-08-28 e92cd56bb56b111c1afe9922191f9897215ff6b0
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*/, '')
}