Skip to content

Commit 74c3374

Browse files
committed
Allow whitespace before @
1 parent fd981f5 commit 74c3374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/dexie-cloud/src/overrideParseStoresSpec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function overrideParseStoresSpec(origFunc: Function, dexie: Dexie) {
4848
const cloudSchema = dexie.cloud.schema || (dexie.cloud.schema = {});
4949
const allPrefixes = new Set<string>();
5050
Object.keys(storesClone).forEach(tableName => {
51-
const schemaSrc = storesClone[tableName];
51+
const schemaSrc = storesClone[tableName]?.trim();
5252
const cloudTableSchema = cloudSchema[tableName] || (cloudSchema[tableName] = {});
5353
if (schemaSrc != null) {
5454
if (/^\@/.test(schemaSrc)) {

0 commit comments

Comments
 (0)