Deduplicate shared helpers and enforce aliased imports (#228)

* Deduplicate string cleanup helpers and not-found responses

* Enforce aliased imports for infra and shared modules

* Enforce @client/@server aliases for deep relative imports

* Deduplicate visa sponsor and location filter definitions

* Use shared city filter export in extractor location checks
This commit is contained in:
Shaheer Sarfaraz
2026-02-22 16:13:52 +00:00
committed by GitHub
parent 16acdf2b5e
commit 3da5ea35b4
67 changed files with 385 additions and 346 deletions
+7
View File
@@ -0,0 +1,7 @@
export function normalizeWhitespace(value: string): string {
return value.replace(/\s+/g, " ").trim();
}
export function stripHtmlTags(value: string): string {
return normalizeWhitespace(value.replace(/<[^>]*>/g, " "));
}