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

This commit is contained in:
Nikita Skryabin
2025-02-20 23:56:20 +03:00
parent f9056c04b8
commit b1a8c47a00
@@ -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;
}; };