mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-13 23:16:53 +03:00
refactor(podkop.js): remove redundant path validation logic
This commit is contained in:
@@ -740,11 +740,6 @@ return view.extend({
|
|||||||
return _('Path must contain at least one directory (like /tmp/cache.db)');
|
return _('Path must contain at least one directory (like /tmp/cache.db)');
|
||||||
}
|
}
|
||||||
|
|
||||||
const pathRegex = /^\/(?:[^/]+\/)+[^/]+\.db$/;
|
|
||||||
if (!pathRegex.test(value)) {
|
|
||||||
return _('Invalid path format. Must be like /tmp/cache.db');
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user