[GH-ISSUE #184] AI infered tags can contain " " at the beginning #138

Closed
opened 2026-03-02 11:47:00 +03:00 by kerem · 1 comment
Owner

Originally created by @kamtschatka on GitHub (May 27, 2024).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/184

Might also be happening on the end, I haven't tried that, but when I looked at the database, I can see the tag being named " DIY" instead of "DIY".
This leads to the scenario where you can actually create tags, that seemingly already exist:
image

image

I guess just a quick trim() would be a good idea before creating tags?

Originally created by @kamtschatka on GitHub (May 27, 2024). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/184 Might also be happening on the end, I haven't tried that, but when I looked at the database, I can see the tag being named " DIY" instead of "DIY". This leads to the scenario where you can actually create tags, that seemingly already exist: ![image](https://github.com/hoarder-app/hoarder/assets/22147234/83e3d421-debe-4e3c-a00d-9f283f199b8d) ![image](https://github.com/hoarder-app/hoarder/assets/22147234/7c4010f9-23ce-4fb2-bbe1-bd2bcb44394d) I guess just a quick trim() would be a good idea before creating tags?
kerem 2026-03-02 11:47:00 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@MohamedBassem commented on GitHub (Jun 1, 2024):

Good catch

I guess just a quick trim() would be a good idea before creating tags?

Yup, let's do it!

<!-- gh-comment-id:2143274278 --> @MohamedBassem commented on GitHub (Jun 1, 2024): Good catch > I guess just a quick trim() would be a good idea before creating tags? Yup, let's do it!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#138
No description provided.