1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2025-07-04 06:38:30 +00:00

keyword: unify keyword synonyms

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2016-11-16 15:42:53 -05:00
parent 627c6e9ddd
commit 5d26726bb1
Signed by: vbatts
GPG key ID: 10937E57733F1362
6 changed files with 124 additions and 3 deletions

View file

@ -38,7 +38,7 @@ func (dh DirectoryHierarchy) UsedKeywords() []string {
for _, kv := range kvs {
kw := KeyVal(kv).Keyword()
if !inSlice(kw, usedkeywords) {
usedkeywords = append(usedkeywords, kw)
usedkeywords = append(usedkeywords, KeywordSynonym(kw))
}
}
}