Skip to content

Multiple word replacement. #13

@juliff

Description

@juliff

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions