mirror of
https://github.com/h-sphere/sql-seal.git
synced 2026-07-22 05:12:18 +00:00
fix: fixing issue with vault names
This commit is contained in:
parent
8bbe844858
commit
77a5ed23fc
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue