refactor UI

This commit is contained in:
Eduard Heimbuch
2020-11-30 16:20:39 +01:00
parent 5468fddf90
commit af9f6ab629
19 changed files with 503 additions and 403 deletions

View File

@@ -49,3 +49,9 @@ const pathRegex = /^((?!\/{2,}).)*$/;
export const isPathValid = (path: string) => {
return pathRegex.test(path);
};
const urlRegex = /[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/;
export const isUrlValid = (url: string) => {
return urlRegex.test(url);
};