feat(FN-3920): export repo override regex from github-tracking module

Exported the repo override regex from `@fusion/core` for use across packages, replacing an internal import in the dashboard's GitHub tracking component with the public API from core. Tests were updated in both packages to cover the new export.

Fusion-Task-Id: FN-3920
This commit is contained in:
Fusion
2026-05-10 04:58:49 -07:00
committed by gsxdsm
parent 7850edfcb0
commit 89e4451c5e
5 changed files with 23 additions and 11 deletions

View File

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