Skip to content

Commit

Permalink
fix: send tags to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
amiller68 committed Apr 5, 2024
1 parent 8f991f3 commit 374ccc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"scripts": {
"lint": "yarn eslint src/**/*.ts",
"format": "prettier --write src/**/*.ts",
"format:check": "prettier --check src/**/*.ts",
"prebuild": "rimraf dist",
"build": "tsc && yarn run build:minified",
"build:minified": "node scripts/build-minified.js",
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function createDocument(title: string, tags: string[] = []): Document {
return {
id: uuidv4(),
title,
tags,
tags: tags.map((tag) => tag.toLowerCase()),
};
}

Expand Down

0 comments on commit 374ccc2

Please sign in to comment.