Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions siteupdate/python-teresco/siteupdate.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -16,6 +16,7 @@
import os
import re
import sys
import string
import time
import threading

Expand DownExpand Up@@ -3323,8 +3324,9 @@ def run(self):

# look for too many characters after underscore in label
if '_' in w.label:
if w.label.index('_') < len(w.label) - 5:
datacheckerrors.append(DatacheckEntry(r,[w.label],'LONG_UNDERSCORE'))
if w.label.index('_') < len(w.label) - 4:
if w.label[-1] not in string.ascii_uppercase or w.label.index('_') < len(w.label) - 5:
datacheckerrors.append(DatacheckEntry(r,[w.label],'LONG_UNDERSCORE'))

# look for too many slashes in label
if w.label.count('/') > 1:
Expand Down