onury / docma

A powerful tool to easily generate beautiful HTML documentation from JavaScript (JSDoc), Markdown and HTML files.
https://onury.io/docma
MIT License
334 stars 34 forks source link

ensure the whole name is shown #87

Closed OmgImAlexis closed 4 years ago

OmgImAlexis commented 5 years ago
Before After
before after
onury commented 4 years ago

@OmgImAlexis thanks.

Using name.split(match[1])[1] as in your PR solves the problem for your case only. If symbol name was Core.module:Core, you'd get .module:

The issue is the regex here. It should have been /(.*?)([.#~].+)/g (to allow other characters such as -)

This is already fixed in the upcoming release.