From 1b78f03219b53c63f2ceda451210482a49f04d22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Mon, 14 Jan 2019 11:33:12 +0100 Subject: [PATCH] [apps/code] Comment the non support for upper cases in script names --- apps/code/script.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/code/script.cpp b/apps/code/script.cpp index c6069fd54..1c97a9083 100644 --- a/apps/code/script.cpp +++ b/apps/code/script.cpp @@ -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