1
0
Fork 0

removed the capital letter hack and added a new one, only for the English I, in DictionaryLoader

removed some unused code and fixed a spelling mistake
This commit is contained in:
sspanak 2023-07-03 12:19:23 +03:00 committed by Dimo Karaivanov
parent dc0468ffeb
commit 17e9b779e6
6 changed files with 6 additions and 24 deletions

View file

@ -131,7 +131,7 @@ static def validateDictionaryWord(String word, int lineNumber, String validChara
errors += "${errorMsgPrefix}. Found a garbage word: '${word}' on line ${lineNumber}.\n"
}
if (word.matches("^.\$") && !Character.isUpperCase(word.charAt(0))) {
if (word.matches("^.\$")) {
errorCount++
errors += "${errorMsgPrefix}. Found a single letter: '${word}' on line ${lineNumber}. Only uppercase single letters are allowed. The rest of the alphabet will be added automatically.\n"
}