From 1431c0cda27ebb5a92413705c914e607ca5cb8a4 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 10 Oct 2020 22:17:48 +0600 Subject: [PATCH] fix for parser --- .../kotlin/com/insanusmokrassar/krontab/internal/Parser.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commonMain/kotlin/com/insanusmokrassar/krontab/internal/Parser.kt b/src/commonMain/kotlin/com/insanusmokrassar/krontab/internal/Parser.kt index 62b4b46..3c9b2cf 100644 --- a/src/commonMain/kotlin/com/insanusmokrassar/krontab/internal/Parser.kt +++ b/src/commonMain/kotlin/com/insanusmokrassar/krontab/internal/Parser.kt @@ -26,8 +26,8 @@ private fun createSimpleScheduler(from: String, dataRange: IntRange): Array return null - else -> listOf(it.toInt().clamp(dataRange)) + currentToken == "*" -> return null + else -> listOf(currentToken.toInt().clamp(dataRange)) } }