Skip to content

Problems with conversion about numbers, may global option?! #80

@guidiego

Description

@guidiego

We are using this lib here, and I found a small problem. Usually, we do not split numbers from the case, for example:

myItem1 -> my_item1.

With ts-case-convert we get my_item_1, I think because of how this line works: https://github.com/RossWilliams/ts-case-convert/blob/main/src/caseConvert.ts#L70-L74

I was thinking if is possible not to add _ before the number (I think that makes more sense) or at least add a configuration to tell how I would like to convert this kind of thing

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