Skip to content

Unable to turn off symbols replacement #95

@tsunday

Description

@tsunday

Hi,

I tried with custom options object and the usage looks like this:

const slugifiedValue = slug(value, { lower: true, symbols: false })

The library still convetes symbols like < or <3 to their representations ('less', 'love'). Options dict isn't completely ignored, because lower option is fine. The problem is with symbols option - it's not taken into consideration by the current implementation.

Environment:
React/Webpack project executed in Chrome browser

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