fix: fixing issue with vault names

This commit is contained in:
Kacper Kula 2026-05-04 10:50:32 +01:00
parent 8bbe844858
commit 77a5ed23fc

View file

@ -8,8 +8,9 @@ export class DatabaseProvider {
constructor(private app: App) { }
get prefix() {
const appId = ((this.app as any).appId ?? '').replace(/[^a-zA-Z0-9_-]/g, '_');
const filename = `sqlseal_1__` +
sanitise(this.app.vault.getName()) + "___" + (this.app as any).appId;
sanitise(this.app.vault.getName()) + "___" + appId;
return filename;
}