Commit 0914e4f1 authored by Diego Garcia Cordeiro Souza's avatar Diego Garcia Cordeiro Souza
Browse files

Conversão de hashtags para lowercase no formulário de input

parent 471914d5
Showing with 2 additions and 1 deletion
+2 -1
......@@ -61,10 +61,11 @@ export default {
methods: {
parseTags () {
// Add tag only after separating with a comma character
const splittedTags = this.tagsText.split(',')
if (splittedTags.length > 1) {
this.tags.add(splittedTags[0].trim())
this.tags.add(splittedTags[0].trim().toLowerCase())
splittedTags.splice(0, 1)
this.tagsText = splittedTags.join('').trim().toLowerCase()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment