Update util.js

This commit is contained in:
Rohit Tanwar
2018-04-12 23:23:00 +05:30
committed by GitHub
parent 5f8b950f34
commit f986f47335

View File

@ -34,7 +34,7 @@ const readTags = () => {
fs
.readFileSync('tag_database', 'utf8')
.split('\n')
.slice(0, -1)
.filter(v => v.trim() !== '')
.map(v => {
let data = v.split(':').slice(0, 2);
data[1] = data[1].split(',').map(t => t.trim());