feat(FN-3921): align dashboard githubTracking with core REPO_OVERRIDE_RE ex

Restored the `REPO_OVERRIDE_RE` regex export from core and aligned the dashboard's `githubTracking` component to consume it, fixing the export contract that was broken in FN-3921. Added tests in both core and dashboard packages to cover the regex behavior.

Fusion-Task-Id: FN-3921
This commit is contained in:
Fusion
2026-05-10 05:25:26 -07:00
committed by gsxdsm
parent 95f6cd8457
commit 63286c29d0
6 changed files with 21 additions and 22 deletions

View File

@@ -1,6 +1,6 @@
import type { GlobalSettings, ProjectSettings } from "@fusion/core";
import { REPO_OVERRIDE_RE, type GlobalSettings, type ProjectSettings } from "@fusion/core";
export const REPO_OVERRIDE_RE = /^[A-Za-z0-9._-]+\/[A-Za-z0-9._-]+$/;
export { REPO_OVERRIDE_RE };
function normalizeRepoValue(value: string | null | undefined): string {
const trimmed = value?.trim() ?? "";