mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-27 18:52:38 +01:00
Regex template function
This commit is contained in:
1 parent
f1acb3c925
commit
1b90842d30
3 files changed
+253
-17
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user