mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-19 16:32:58 +00:00
fix: chord page overlapping
fixes #57, fixes #56 fix: handle trailing spaces in lecacy chord files
This commit is contained in:
@@ -12,7 +12,10 @@ export function csvChordsToJson(csv: string): CharaChordFile {
|
||||
const [input, output] = line.split(",", 2)
|
||||
return [
|
||||
input.split("+").map(it => KEYMAP_IDS.get(it.trim())?.code ?? 0),
|
||||
output.split("").map(it => KEYMAP_IDS.get(it.trim())?.code ?? 0),
|
||||
output
|
||||
.trim()
|
||||
.split("")
|
||||
.map(it => KEYMAP_IDS.get(it)?.code ?? 0),
|
||||
]
|
||||
}),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user