fixed tag issue

This commit is contained in:
Anton Tranelis 2024-02-15 21:04:16 +01:00
parent dde57d4aa9
commit aa4a332d13

View File

@ -93,7 +93,7 @@ function useTagsManager(initialTags: Tag[]): {
const itemTagStrings = text?.match(hashTagRegex);
const itemTags: Tag[] = [];
itemTagStrings?.map(tag => {
if (tags.find(t => t.name === tag.slice(1))) {
if (tags.find(t => t.name.toLocaleLowerCase() === tag.slice(1).toLocaleLowerCase())) {
itemTags.push(tags.find(t => t.name.toLocaleLowerCase() === tag.slice(1).toLocaleLowerCase())!)
}
})