mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 14:05:44 +01:00
Improve a11y (#1841)
Improve accessibility by removing unnecessary tags without hrefs. Also remove many eslint errors and warnings.
This commit is contained in:
@@ -45,10 +45,7 @@ export const isNumberValid = (number: any) => {
|
||||
};
|
||||
|
||||
export const isPathValid = (path: string) => {
|
||||
return path !== "."
|
||||
&& !path.includes("../")
|
||||
&& !path.includes("//")
|
||||
&& path !== "..";
|
||||
return path !== "." && !path.includes("../") && !path.includes("//") && path !== "..";
|
||||
};
|
||||
|
||||
const urlRegex = /^[A-Za-z0-9]+:\/\/[^\s$.?#].[^\s]*$/;
|
||||
|
||||
Reference in New Issue
Block a user