Skip to content

Commit

Permalink
feat(ui): Trim host field inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Nov 16, 2024
1 parent 2cc0ab5 commit a07503b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,5 +236,5 @@ export const useGetter = <S>(value: S): (() => S) => {
};

export function extractHostFromUrl(value: string): string {
return value.replace(/^[a-zA-Z]+:\/\//, "").replace(/\/.*/g, "");
return value.replace(/^[a-zA-Z]+:\/\//, "").replace(/\/.*/g, "").trim();
}

0 comments on commit a07503b

Please sign in to comment.