1
0
Fork 0

fixed 0-key and 1-key character validation (#305)

This commit is contained in:
Dimo Karaivanov 2023-07-13 15:37:31 +03:00 committed by GitHub
parent 0aa934cebd
commit 80ab777b3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,7 @@ static def validateDictionaryLine(String line, int lineNumber) {
}
static def extractAlphabetCharsFromLine(String line) {
if (line.contains('DEFAULT') || !line.matches('\\s+- \\[.+?\\].*')) {
if (line.contains('PUNCTUATION') || line.contains('SPECIAL') || !line.matches('\\s+- \\[.+?\\].*')) {
return ''
}