Names¶
- name¶
In CRS and
bpta name refers to a textual identifier matching a specific form.A valid name must match the following requirements:
Must begin with a lowercase ASCII alphabetic character
Must not contain any capital letter characters.
May only contain ASCII alphanumeric characters and the ASCII dot “
.”, underscore “_”, and hyphen “-“.Must not contain any adjacent punctuation characters.
Must end with a letter or digit.
A CRS name can be validated by testing against the following regular expression
^([a-z][a-z0-9]*)([._-][a-z0-9]+)*$
It checks the following rules:
A name must begin with a lowercase ASCII alphabetic character (Must match
^[a-z]).A name may not be an empty string.
A name may not contain any capital letter characters.
A name may only contain ASCII alphanumeric characters and the ASCII dot “
.”, underscore “_”, and hyphen “-“.A name may not contain any adjacent punctuation characters.
A name must end with a letter or a digit.
These name restrictions are currently in place to simplify path handling and prevent havok from filepath normalization on certain filesystems. Future revisions will likely loosen these requirements.
Examples¶
Name string |
Is valid? |
Reason |
|
✔️ |
|
|
✔️ |
|
|
✔️ |
|
|
✔️ |
|
|
✔️ |
|
|
❌ |
Names may not end with a punctuation character |
|
❌ |
Names may not contain capital letters |
|
❌ |
Names may not begin with a digit |
|
❌ |
Names may not begin with underscores |
|
❌ |
Names may not contain adjacent punctuation or underscores |
|
❌ |
‘‘ |
|
❌ |
Names may not contain capital letters. |