Fix for --common-tables/--common-columns false positive on oracle string words

This commit is contained in:
Miroslav Štampar 2026-11-12 14:56:44 +01:00
parent 76351cdbd5
commit 563066e4f5
2 changed files with 3 additions and 2 deletions

View file

@ -55,7 +55,8 @@ def _addPageTextWords():
for word in pageWords:
word = word.lower()
if len(word) > 2 and not word[0].isdigit() and word not in wordsList:
# Note: words of the (boolean) oracle string would be "found" (e.g. reflected inside an error message)
if len(word) > 2 and not word[0].isdigit() and word not in wordsList and not (conf.string and word in conf.string.lower()):
wordsList.append(word)
return wordsList