Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Snake casing not idempotent for strings with a numeric character following a capitalized character  #74

Open
@fordN

Description

@fordN

Current behavior

to_snake_case("convertedAcquisitionV2Counter") => "converted_acquisition_v2_counter"
to_snake_case("converted_acquisition_v2_counter") => "converted_acquisition_v_2_counter"

Which also leads to:

is_snake_case(to_snake_case("convertedAcquisitionV2Counter")) => false

Expected behavior

to_snake_case("convertedAcquisitionV2Counter") => "converted_acquisition_v2_counter"
to_snake_case("converted_acquisition_v2_counter") => "converted_acquisition_v2_counter"
is_snake_case(to_snake_case("convertedAcquisitionV2Counter")) => true

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