Skip to content
Snippets Groups Projects
Commit dc8881d7 authored by HongKee Moon's avatar HongKee Moon
Browse files

Replace the hyphen with space, and capitalise the words; eg: "germ-granule" becomes "Germ Granule"

parent 13e7e6da
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@
<div class="row">
<div class="text col-sm-3">Also Known As</div>
<div class="col-sm-9">
{{response.data.synonyms}}
{{response.data.synonyms.map(a => a.replace('-', ' ').replace(/\b\w/g, l => l.toUpperCase())).join(', ')}}
</div>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment