Regex template function

This commit is contained in:
Gregory Schier committed 2025-07-23 13:33:58 -07:00
1 parent f1acb3c925
commit 1b90842d30
3 files changed
+253 -17

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ export function resolvedModelName(r: AnyModel | null): string {
}
// Strip unnecessary protocol
const withoutProto = withoutVariables.replace(/^https?:\/\//, '');
const withoutProto = withoutVariables.replace(/^(http|https|ws|wss):\/\//, '');
return withoutProto;
}