返回 DeepSeek-Reasonix
release-title.js
根目录 / site / src / scripts / release-title.js
1 // Release-hero classification: a release whose title is exactly its version
2 // string ("Reasonix 1.17.14") is a patch release and gets the compact hero.
3 // Anything else — including titles that merely START with the version, like
4 // "Reasonix 1.18.0 — Better agents" — is thematic and keeps the full hero.
5 // Exact, normalized comparison only (no prefix regex).
6 export function isThematicTitle(titleEn, version) {
7 const title = String(titleEn || "").trim().toLowerCase().replace(/\s+/g, " ");
8 const v = String(version || "").trim().toLowerCase();
9 return title !== `reasonix ${v}` && title !== `reasonix v${v}`;
10 }
11
11 lines JAVASCRIPT