Skip to content

Inconsistent isSlug results with "." in the inputs #2383

Open
@Zhuochengyu

Description

@Zhuochengyu

Describe the bug
A clear and concise description of what the bug is.
IsSlug shows inconsistent results when I put "." in the inputs.

Examples
If applicable, add screenshots to help explain your problem.

> isSlug('i.am.not.a.slug')
false
> isSlug('slug.is.cool')
true

Additional context
Validator.js version: 13.11.0
Node.js version: v18.15.0
OS platform: macOs 12.6.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions