chg: [tools] replace function fixed

pull/137/head
Alexandre Dulaunoy 2019-01-20 11:11:32 +01:00
parent 85d042dd45
commit d179058059
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 1 additions and 1 deletions

View File

@ -6,4 +6,4 @@ with open(filename) as fp:
t = json.load(fp) t = json.load(fp)
for taxo in sorted(t['taxonomies'], key=lambda k: k['name']): for taxo in sorted(t['taxonomies'], key=lambda k: k['name']):
print ("[{}](https://github.com/MISP/misp-taxonomies/tree/master/{}):\n: {}[HTML](https://www.misp-project.org/taxonomies.html#_{})\n".format(taxo['name'], taxo['name'], taxo['description'], re.sub(r'_', '-',taxo['name']))) print ("[{}](https://github.com/MISP/misp-taxonomies/tree/master/{}):\n: {}[HTML](https://www.misp-project.org/taxonomies.html#_{})\n".format(taxo['name'], taxo['name'], taxo['description'], re.sub(r'-', '_',taxo['name'])))