Files
DeepSeek-TUI/web/lib/faq-source.ts
Hunter B 3714b8a425 fix(web): enforce source-backed public facts
Align English and Chinese public copy with the canonical tools, permission labels, privacy boundary, candidate/release split, roadmap state, and install channels. Expand the machine-readable matrix and drift tests, add verifiable FAQ source links, and cover canonical/hreflang/Open Graph/Twitter metadata on previously incomplete routes.

Signed-off-by: Hunter B <hmbown@gmail.com>
2026-07-21 17:20:37 -07:00

11 lines
345 B
TypeScript

const REPOSITORY = "https://github.com/Hmbown/CodeWhale";
export function faqSourceHref(source: string): string | null {
const issue = source.match(/^#(\d+)$/);
if (issue) return `${REPOSITORY}/issues/${issue[1]}`;
if (source.endsWith(".md") || source.includes("/")) {
return `${REPOSITORY}/blob/main/${source}`;
}
return null;
}