Skip to content

Commit 1b46ba4

Browse files
committed
require // instead of / for trying to parse as json
fixes GH-2176
1 parent 56d8a74 commit 1b46ba4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • app/src/main/java/helium314/keyboard/keyboard/internal/keyboard_parser

app/src/main/java/helium314/keyboard/keyboard/internal/keyboard_parser/LayoutParser.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ object LayoutParser {
7474
private fun createCacheLambda(layoutType: LayoutType, layoutName: String, context: Context):
7575
(KeyboardParams) -> MutableList<MutableList<KeyData>> {
7676
val layoutFileContent = getLayoutFileContent(layoutType, layoutName.substringBefore("+"), context).trimStart()
77-
if (layoutFileContent.startsWith("[") || (LayoutUtilsCustom.isCustomLayout(layoutName) && layoutFileContent.startsWith("/"))) {
77+
if (layoutFileContent.startsWith("[") || (LayoutUtilsCustom.isCustomLayout(layoutName) && layoutFileContent.startsWith("//"))) {
7878
try {
7979
val florisKeyData = parseJsonString(layoutFileContent, false)
8080
return { params ->

0 commit comments

Comments
 (0)