Skip to content

When apply kebabCase wit a string separated by spaces it does not add the hyphen #86

@potsed

Description

@potsed

Environment

Package 1.3.0
Node v21.7.3
Vue 3

Reproduction

import { kebabCase } from "scule"

console.log(kebabCase("A string with Spaces"))

Expect: a-string-with-spaces
Actual: a string with spaces

Describe the bug

Trying to convert a string into a slug for a URI and noticed this behaviour.

Additional context

I noticed the tests do not have test cases for string with spaces and wonder if this is intended behaviour.

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions