Skip to content

Commit 86e80ba

Browse files
committed
fix: resolve detekt issues in VietnameseTelexTest
- Remove unused applyRulesCaseInsensitive function - Add newline at end of file
1 parent 1b29fc3 commit 86e80ba

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

app/src/test/kotlin/org/fossify/keyboard/services/VietnameseTelexTest.kt

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -177,29 +177,4 @@ class VietnameseTelexTest {
177177
return word
178178
}
179179

180-
/**
181-
* Helper function that applies rules with case-insensitive matching.
182-
* Matches rules regardless of input case and preserves case in output.
183-
*/
184-
private fun applyRulesCaseInsensitive(word: String): String {
185-
for (length in word.length downTo 1) {
186-
val suffix = word.substring(word.length - length)
187-
val suffixLower = suffix.lowercase()
188-
189-
if (telexRules.containsKey(suffixLower)) {
190-
val prefix = word.substring(0, word.length - length)
191-
val transformed = telexRules[suffixLower]!!
192-
193-
val result = if (suffix[0].isUpperCase() && transformed.isNotEmpty()) {
194-
transformed[0].uppercaseChar() + transformed.substring(1)
195-
} else {
196-
transformed
197-
}
198-
199-
return prefix + result
200-
}
201-
}
202-
203-
return word
204-
}
205-
}
180+
}

0 commit comments

Comments
 (0)