mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/code] Comment the non support for upper cases in script names
This commit is contained in:
committed by
EmilieNumworks
parent
f392ca8063
commit
1b78f03219
@@ -49,7 +49,10 @@ bool Script::nameCompliant(const char * name) {
|
||||
* create a new empty script. When naming or renaming a script, we check
|
||||
* elsewhere that the name is no longer empty.
|
||||
* The name format is ([a-z_][a-z0-9_]*)*\.py
|
||||
* */
|
||||
*
|
||||
* We do not allow upper cases in the script names because script names are
|
||||
* used in the URLs of the NumWorks workshop website and we do not want
|
||||
* problems with case sensitivity. */
|
||||
const char * c = name;
|
||||
if (*c == 0 || (!isSmallLetterOrUnderscoreChar(*c) && *c != '.')) {
|
||||
/* The name cannot be empty. Its first letter must be in [a-z_] or the
|
||||
|
||||
Reference in New Issue
Block a user