Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple word replacement. #13

Open
juliff opened this issue May 8, 2021 · 0 comments
Open

Multiple word replacement. #13

juliff opened this issue May 8, 2021 · 0 comments

Comments

@juliff
Copy link

juliff commented May 8, 2021

If we have a trree or more words definition, the link will not work.

The solution is replace the line:
let id = term.toLowerCase().replace(' ','-');\n\n
With:
let id = term.toLowerCase().replace(/ /g,'-');\n\n

these last line will replace "all ocurrences of space" and not only the first.

stijn-dejongh added a commit to stijn-dejongh/docsify-glossary that referenced this issue Nov 27, 2022
* Fix issue with multiple occurences and delimiters
* Fix sonar indicated issues

see issue TheGreenToaster#13 :  TheGreenToaster#13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant