diff options
Diffstat (limited to 'support/texplate/source/main/kotlin/org/islandoftex/texplate/model/handlers/BooleanHandler.kt')
-rw-r--r-- | support/texplate/source/main/kotlin/org/islandoftex/texplate/model/handlers/BooleanHandler.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/texplate/source/main/kotlin/org/islandoftex/texplate/model/handlers/BooleanHandler.kt b/support/texplate/source/main/kotlin/org/islandoftex/texplate/model/handlers/BooleanHandler.kt index cbb74a532f..aa8c790647 100644 --- a/support/texplate/source/main/kotlin/org/islandoftex/texplate/model/handlers/BooleanHandler.kt +++ b/support/texplate/source/main/kotlin/org/islandoftex/texplate/model/handlers/BooleanHandler.kt @@ -15,6 +15,6 @@ class BooleanHandler : Handler { * @return A list. */ override fun apply(string: String?): Any? { - return listOf("true", "1", "yes").contains(string!!.toLowerCase()) + return listOf("true", "1", "yes").contains(string!!.lowercase()) } } |