Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

_.words handles numbers differently when converting cases #3561

Copy link
Copy link
Closed
@jonathanseneris

Description

@jonathanseneris
Issue body actions

Several previous issues state that numbers are considered words, but regular language strings do this differently from camelCase or snakeCase.

When:

  1. _.words('my 1st birthday')
  2. _.words('my_1st_birthday')
  3. _.words('my1stBirthday')

Expected:
All would return either
["my", "1", "st", "birthday"]
or
["my", "1st", "birthday"]

Actual:

  1. ["my", "1st", "birthday"]
  2. ["my", "1", "st", "birthday"]
  3. ["my", "1", "st", "birthday"]

Is it expected that 'nth' is viewed differently in a regular string vs camel or snake case?

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.