Tankōbon / main/db/db-location / normalizeDatabaseFileName
Function: normalizeDatabaseFileName()
normalizeDatabaseFileName(
input): {fileName:string; } | {error:string; }
Defined in: main/db/db-location.ts:131
Turns what the user typed into the file name to store: spaces around it are dropped and .db is added when missing. Returns the name, or the error message (interface language) when it can't be a file name.
Parameters
input
string
Returns
{ fileName: string; } | { error: string; }