This commit is contained in:
Eduard Heimbuch
2020-12-03 08:54:56 +01:00
parent 60cdc6f8cf
commit 09c13100dd
6 changed files with 5 additions and 6 deletions

View File

@@ -50,7 +50,7 @@ export const isPathValid = (path: string) => {
return pathRegex.test(path);
};
const urlRegex = /^(ftp|https?):\/\/[^\s$.?#].[^\s]*$/;
const urlRegex = /^(ssh|ftp|https?):\/\/[^\s$.?#].[^\s]*$/;
export const isUrlValid = (url: string) => {
return urlRegex.test(url);