Skip to content

camelize helper function incorrect #576

Closed
@daylightstudio

Description

@daylightstudio

The current camelize function looks to be a version of the humanize function. Previous versions of CI had this:

return strtolower($str[0]).substr(str_replace(' ', '', ucwords(preg_replace('/[\s_]+/', ' ', $str))), 1);

https://github.com/bcit-ci/CodeIgniter4/blob/develop/system/Helpers/inflector_helper.php#L192

Thanks again

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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