mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 02:05:53 +01:00
fix finding single note by label with mixed case
This commit is contained in:
@@ -29,7 +29,13 @@ class Becca {
|
||||
|
||||
/** @return {Attribute[]} */
|
||||
findAttributes(type, name) {
|
||||
return this.attributeIndex[`${type}-${name.toLowerCase()}`] || [];
|
||||
name = name.trim().toLowerCase();
|
||||
|
||||
if (name.startsWith('#') || name.startsWith('~')) {
|
||||
name = name.substr(1);
|
||||
}
|
||||
|
||||
return this.attributeIndex[`${type}-${name}`] || [];
|
||||
}
|
||||
|
||||
/** @return {Attribute[]} */
|
||||
|
||||
Reference in New Issue
Block a user