A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
core: make tag title matching case sensitive
Abdullah Attad2eeb9333926
diff --git a/packages/core/src/collections/tags.ts b/packages/core/src/collections/tags.tsindex 487f7391f..24d73d96d 100644--- a/packages/core/src/collections/tags.ts+++ b/packages/core/src/collections/tags.ts@@ -23,6 +23,7 @@ import Database from "../api";import { ICollection } from "./collection";import { SQLCollection } from "../database/sql-collection";import { isFalse } from "../database";+import { sql } from "kysely";export class Tags implements ICollection {name = "tags";@@ -46,7 +47,7 @@ export class Tags implements ICollection {}find(title: string) {- return this.all.find((eb) => eb.and([eb("title", "==", title)]));+ return this.all.find(sql`title == ${title} COLLATE BINARY`);}async add(item: Partial<Tag> & { title: string }) {