Open jfrost-mo opened 3 months ago
Currently, _
doesn't follow the same rule as -
, +
, %
: it's allowed as the first character for task name.
⅓ 12 ³eçàÙ感µ:!.^$-+_()/
is a valid setting key.
Two consecutive spaces, or any of the following characters, are forbidden in setting key: #=%@§€£*±;?¿¡`'"°¶®🐍[]{}<>\
These lists are not comprehensive.
This isn't of much use, except for arbitrary settings in [[[meta]]] sections. Obviously, keys in a task [[[environment]]] are more strict (must be legit shell variable names).
Description
The cylc.flow.unicode_rules.TaskNameValidator documentation states that workflows must start with an alphanumeric character, and contain only alphanumeric, -, +, %, and @ characters. However it can also contain
_
characters, which is not documented.Specifically this comes from using the
\w
regex class, which:This class also contains many characters outside the possibly expected
[a-zA-Z0-9_]
, such as⅓
(U+2153 Vulgar Fraction One Third), though these are likely less frequently used in workflows than underscores.Expected Behaviour
Underscores should be contained in the documentation, probably also that other characters are supported, maybe by linking to the python isalnum str method. At least it should check that everyone is properly supporting Unicode.