OAFRONT6 补齐次级长编号压缩
这个提交包含在:
@@ -58,7 +58,8 @@ export function formatTextWithCompactLongNumbers(value: string | number | null |
|
||||
const text = String(value ?? "").trim();
|
||||
if (!text) return "-";
|
||||
|
||||
return text.replace(/\b20[0-9]{12,}\b/g, (match) =>
|
||||
formatCompactIdentifier(match, { head: 10, tail: 4, minLength: 14 }),
|
||||
);
|
||||
return text.replace(/\b20[0-9]{12,}\b/g, (match) => {
|
||||
if (match.length <= 12) return match;
|
||||
return `${match.slice(0, 8)}…${match.slice(-4)}`;
|
||||
});
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户