Skip to content

Commit 7a57d49

Browse files
Refine documentation of Validators (#6661)
* Amend information about \w in unicode validation. * Update cylc/flow/unicode_rules.py Co-authored-by: Oliver Sanders <[email protected]>
1 parent 53f6b07 commit 7a57d49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cylc/flow/unicode_rules.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from cylc.flow.task_state import TASK_STATUSES_ORDERED
2828

2929
ENGLISH_REGEX_MAP = {
30-
r'\w': 'alphanumeric',
30+
r'\w': r'alphanumeric (regex word characters - ``\w``)',
3131
r'a-zA-Z0-9': 'latin letters and numbers',
3232
r'\d': 'numbers',
3333
r'\-': '``-``',
@@ -45,7 +45,7 @@ def regex_chars_to_text(chars):
4545
>>> regex_chars_to_text([r'\-', r'\.', r'\/'])
4646
['``-``', '``.``', '``/``']
4747
>>> regex_chars_to_text([r'\w'])
48-
['alphanumeric']
48+
['alphanumeric (regex word characters - ``\\w``)']
4949
>>> regex_chars_to_text(['not_in_map'])
5050
['``not_in_map``']
5151

0 commit comments

Comments
 (0)