mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
rename path validation method
This commit is contained in:
@@ -17,6 +17,6 @@ export const isNumberValid = (number: string) => {
|
||||
|
||||
const pathRegex = /^((?!\/{2,}).)*$/;
|
||||
|
||||
export const isValidPath = (path: string) => {
|
||||
export const isPathValid = (path: string) => {
|
||||
return pathRegex.test(path);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user