Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit c82a286

Browse files
committed
improving testing
1 parent 502b1d5 commit c82a286

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/helpers/Constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export function getOperatorFilterValue(keyToFind: string): string {
242242
}
243243

244244
export const MarkdownBreakerRules = Object.freeze({
245-
INIT_CHARS: ['`', '\"', '[', '{', '*'],
245+
INIT_CHARS: ['`', '"', '[', '{', '*'],
246246
BETWEEN_CHARS: [':'],
247247
UNIQUE_CHARS: ['?'],
248248
})

src/helpers/VaultManagement.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,12 @@ export async function sourceDataviewPages(folderPath: string, dbYaml: DatabaseYa
9898
pagesResult = DataviewService.getDataviewAPI().pages(`outgoing([[${dbYaml.config.source_form_result}]])`);
9999
break;
100100
case SourceDataTypes.QUERY:
101-
const query = generateDataviewTableQuery(
102-
dbYaml.columns,
103-
dbYaml.config.source_form_result)
104-
pagesResult = await obtainQueryResult(query, folderPath);
101+
pagesResult = await obtainQueryResult(
102+
generateDataviewTableQuery(
103+
dbYaml.columns,
104+
dbYaml.config.source_form_result),
105+
folderPath
106+
);
105107
break;
106108
default:
107109
pagesResult = DataviewService.getDataviewAPI().pages(`"${folderPath}"`);
@@ -129,7 +131,7 @@ async function obtainQueryResult(query: string, folderPath: string): Promise<Dat
129131
const msg = `Error obtaining query result: "${query}", current folder loaded instead`;
130132
LOGGER.error(msg, error);
131133
new Notice(msg, 10000);
132-
return DataviewService.getDataviewAPI().pages(`"${folderPath}"`);;
134+
return DataviewService.getDataviewAPI().pages(`"${folderPath}"`);
133135
}
134136
}
135137

0 commit comments

Comments
 (0)