summaryrefslogtreecommitdiff
path: root/bin/lint-ui.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/lint-ui.py')
-rwxr-xr-xbin/lint-ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/lint-ui.py b/bin/lint-ui.py
index 124e1bf58316..8860547bef58 100755
--- a/bin/lint-ui.py
+++ b/bin/lint-ui.py
@@ -163,7 +163,7 @@ def check_title_labels(root):
words = re.split(r'[^a-zA-Z0-9:_-]', title.text)
first = True
for word in words:
- if len(word) and word[0].islower() and (word not in IGNORED_WORDS or first):
+ if len(word) and word[0].islower() and (word not in IGNORED_WORDS) and not first:
lint_assert(False, "The word '" + word + "' should be capitalized", label)
first = False