/** * 统一整理身份证号: * 1. 去掉前后空白与中间空格 * 2. 将末尾可能出现的小写 x 规范成大写 X */ export function normalizePatientIdCard(value: string): string { return value.trim().replace(/\s+/g, '').toUpperCase(); }