mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-16 23:12:47 +00:00
fix broken parsing of labels and extra keys
This commit is contained in:
parent
e1a89c811c
commit
38fde35890
1 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ class LocaleKeyTexts(dataStream: InputStream?) {
|
|||
init {
|
||||
readStream(dataStream, false)
|
||||
// set default quote moreKeys if necessary
|
||||
// should this also be done with punctuation moreKeys??
|
||||
// should this also be done with punctuation moreKeys?
|
||||
if ("\'" !in moreKeys)
|
||||
moreKeys["\'"] = arrayOf("‚", "‘", "’", "‹", "›")
|
||||
if ("\"" !in moreKeys)
|
||||
|
@ -44,8 +44,8 @@ class LocaleKeyTexts(dataStream: InputStream?) {
|
|||
}
|
||||
when (mode) {
|
||||
READER_MODE_MORE_KEYS -> addMoreKeys(line.splitOnWhitespace())
|
||||
READER_MODE_EXTRA_KEYS -> if (!onlyMoreKeys) addExtraKey(line.split(colonSpaceRegex, 1))
|
||||
READER_MODE_LABELS -> if (!onlyMoreKeys) addLabel(line.split(colonSpaceRegex, 1))
|
||||
READER_MODE_EXTRA_KEYS -> if (!onlyMoreKeys) addExtraKey(line.split(colonSpaceRegex, 2))
|
||||
READER_MODE_LABELS -> if (!onlyMoreKeys) addLabel(line.split(colonSpaceRegex, 2))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue