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

Commit fcf6ce0

Browse files
committed
fix queries with "
1 parent 138f723 commit fcf6ce0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/helpers/Constants.ts

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

275275
export const MarkdownBreakerRules = Object.freeze({
276276
INIT_CHARS: ['`', '"', '[', '{', '*', '!'],
277-
BETWEEN_CHARS: [':'],
277+
BETWEEN_CHARS: [':', '"'],
278278
UNIQUE_CHARS: ['?'],
279279
})
280280

src/services/DataviewService.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ class DataviewProxy {
246246
MarkdownBreakerRules.BETWEEN_CHARS.some(rule => value.includes(rule)) ||
247247
MarkdownBreakerRules.UNIQUE_CHARS.some(c => value === c) ||
248248
localSettings.frontmatter_quote_wrap) {
249+
value = value.replaceAll(`\\`, ``);
249250
value = value.replaceAll(`"`, `\\"`);
250251
return `"${value}"`;
251252
}

0 commit comments

Comments
 (0)