mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-12 22:46:58 +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)');
|
||||
}
|
||||
|
||||
const pathRegex = /^\/(?:[^/]+\/)+[^/]+\.db$/;
|
||||
if (!pathRegex.test(value)) {
|
||||
return _('Invalid path format. Must be like /tmp/cache.db');
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user