Skip to content

Problem with capital letters in scriptName #1641

Closed

Description

@albertvanveen

Description

When I create a new script with for example the name 'lookAtScreen' then inside the script the result is 'lookAtscreen'. The S is no capital letter anymore. With for example 'thisIsABug' the result inside the script is 'thisIsAbug'. The B is no capital letter anymore. If I try 'testTestTest' then the result is as expected.

unknown

image

Steps to Reproduce

  1. Create a new script with some capital letters
  2. Check the result inside the script

Activity

  1. Maksims commented on Sep 22, 2020

    @Maksims
    Collaborator

    Based on naming conventions been used: lookAtScreen should be lookAtScreen indeed. But thisIsABug should be thisIsAbug, as consecutive capital letters should be lower case. Like HTMLClass, should be HtmlClass, or RGB should be Rgb.

  2. albertvanveen commented on Sep 22, 2020

    @albertvanveen
    Author

    Ah ok I didn't know that. Then the problem is only when capital letters are used with only one normal letter in between.

  3. willeastcott commented on Feb 25, 2023

    @willeastcott
    Contributor
  4. self-assigned this
    on Dec 18, 2025
  5. willeastcott commented on Dec 18, 2025

    @willeastcott
    Contributor

    Appears fixed:

    camel-case.mp4

    Closing.

  6. added theissue type on Dec 18, 2025
  7. albertvanveen commented on Dec 18, 2025

    @albertvanveen
    Author

    Yes, this was fixed recently: playcanvas/editor-api#110

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

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions