fix: tags input normalization

This commit is contained in:
NGPixel
2020-04-09 21:56:24 -04:00
parent 488ec4a3af
commit 77548c8778
3 changed files with 19 additions and 17 deletions

View File

@@ -55,7 +55,7 @@ module.exports = class Tag extends Model {
// Format tags
tags = _.uniq(tags.map(t => t.toLowerCase()))
tags = _.uniq(tags.map(t => _.trim(t).toLowerCase()))
// Create missing tags