Skip to content

Case detection #839

@kwalcock

Description

@kwalcock

Should the result for the word "XxX" really be CASE_x? The code doesn't seem to be used in the project, so the expected result is unclear. Perhaps the input is constrained so that this possibility is avoided.

var v = CASE_x
if (uppers == w.length) v = CASE_X
else if (uppers == 1 && w.charAt(0).isUpper) v = CASE_Xx
else if (uppers >= 1 && !w.charAt(0).isUpper) v = CASE_xX
v

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