Skip to content

Commit

Permalink
fix: Fix bug in tag normalization regex. Fixes #595
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Nov 3, 2024
1 parent d34b538 commit 306567b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/workers/openaiWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const openAIResponseSchema = z.object({

function tagNormalizer(col: Column) {
function normalizeTag(tag: string) {
return tag.toLowerCase().replace(/[ -_]/g, "");
return tag.toLowerCase().replace(/[ \-_]/g, "");
}

return {
Expand Down

0 comments on commit 306567b

Please sign in to comment.