From 42e96b63949c2021d3da623ba420ebc99a7e01b8 Mon Sep 17 00:00:00 2001 From: Eric Bryant Date: Thu, 3 Jan 2019 01:19:48 -0500 Subject: [PATCH] expand LABEL_INVALID_CHAR datacheck to AltLabels --- siteupdate/python-teresco/siteupdate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/siteupdate/python-teresco/siteupdate.py b/siteupdate/python-teresco/siteupdate.py index c8c0371e..7c64f04e 100755 --- a/siteupdate/python-teresco/siteupdate.py +++ b/siteupdate/python-teresco/siteupdate.py @@ -3202,6 +3202,9 @@ def run(self): # look for labels with invalid characters if not re.fullmatch('[a-zA-Z0-9()/\+\*_\-\.]+', w.label): datacheckerrors.append(DatacheckEntry(r,[w.label],'LABEL_INVALID_CHAR')) + for a in w.alt_labels: + if not re.fullmatch('[a-zA-Z0-9()/\+\*_\-\.]+', a): + datacheckerrors.append(DatacheckEntry(r,[a],'LABEL_INVALID_CHAR')) # look for labels with a slash after an underscore if '_' in w.label and '/' in w.label and \