refactor(podkop.js): remove redundant path validation logic

This commit is contained in:
Nikita Skryabin
2025-02-20 23:56:20 +03:00
parent 560dda8604
commit 134a79cb3b

View File

@@ -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;
};