mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix wrong behavior when customResourceProvider has empty value, fixes #1393
This commit is contained in:
parent
f988935a33
commit
ce33eb3abd
@ -12,6 +12,10 @@ async function handleRequest(req, res) {
|
||||
const attrs = repository.getEntities("SELECT * FROM attributes WHERE isDeleted = 0 AND type = 'label' AND name IN ('customRequestHandler', 'customResourceProvider')");
|
||||
|
||||
for (const attr of attrs) {
|
||||
if (!attr.value.trim()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const regex = new RegExp(attr.value);
|
||||
let match;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user