diff --git a/apps/ssb/tf-compose.js b/apps/ssb/tf-compose.js index 1f4f264e..09afbce1 100644 --- a/apps/ssb/tf-compose.js +++ b/apps/ssb/tf-compose.js @@ -249,7 +249,7 @@ class TfComposeElement extends LitElement { `, ['"' + text.replace('"', '""') + '"', `%![%${text}%](%)%`]); for (let row of rows) { for (let match of row.content.matchAll(/!\[([^\]]*)\]\((&.*?)\)/g)) { - if (match[1].toLowerCase().indexOf(text) != -1) { + if (match[1].toLowerCase().indexOf(text.toLowerCase()) != -1) { results.push({key: match[1], value: match[2]}); } }