mirror of
https://github.com/JetBrains/thinkrail.git
synced 2026-11-22 06:46:49 +08:00
* todo: Promote and approve the chosen design ThinkRail-Todo: 01a03f04-9a70-7c8d-a04e-dad7105ea6b8/t_f81e2ecc4e8f * todo: Implement sticky breadcrumbs test-first ThinkRail-Todo: 01a03f04-9a70-7c8d-a04e-dad7105ea6b8/t_2af3cd24f64f * todo: Verify and capture the breadcrumb UI ThinkRail-Todo: 01a03f04-9a70-7c8d-a04e-dad7105ea6b8/t_f6334bfef2d9 * fix(e2e): keep breadcrumb fixture model-neutral * fix(web): prevent long-chat crashes and resync compaction (#315) * todo: Draft and validate the recovery design ThinkRail-Todo: 01a03e67-0f3e-71f5-8113-71eac869713f/t_ba5a364c8500 * todo: Add a failing regression test ThinkRail-Todo: 01a03e67-0f3e-71f5-8113-71eac869713f/t_498c28840f48 * todo: Implement the root-cause fix and update specs ThinkRail-Todo: 01a03e67-0f3e-71f5-8113-71eac869713f/t_f78c9562ae5d * todo: Run full verification and review the diff ThinkRail-Todo: 01a03e67-0f3e-71f5-8113-71eac869713f/t_e4e4e40281d2 * fix(web): harden transcript resync * fix(web): prioritize reconnect transcript safety * feat(web): add an adaptive chat composer (#308) * todo: Review mockups together and capture the chosen design ThinkRail-Todo: 01a03d5d-7d37-72f8-aaf2-9dcfca683610/t_fe1105319f17 * todo: Add failing tests for the approved behavior ThinkRail-Todo: 01a03d5d-7d37-72f8-aaf2-9dcfca683610/t_6b613c5bdfe3 * todo: Implement the global composer growth setting ThinkRail-Todo: 01a03d5d-7d37-72f8-aaf2-9dcfca683610/t_c6084ad8e5ad * todo: Implement adaptive Composer layout and growth ThinkRail-Todo: 01a03d5d-7d37-72f8-aaf2-9dcfca683610/t_65918e2ad100 * fix(web): finish adaptive composer phone behavior * fix(deps): enforce one React runtime * fix(web): defer streaming transcript sync
7 lines
303 B
TypeScript
7 lines
303 B
TypeScript
const EXACT_SEMVER =
|
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[A-Za-z-][0-9A-Za-z-]*)(?:\.(?:0|[1-9]\d*|\d*[A-Za-z-][0-9A-Za-z-]*))*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/;
|
|
|
|
export function isExactVersion(version: string): boolean {
|
|
return EXACT_SEMVER.test(version);
|
|
}
|