Regex template function

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

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;
}