mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2026-10-31 16:42:57 +00:00
fix for parser
This commit is contained in:
1 parent
66e75b4315
commit
1431c0cda2
1 file changed
+2
-2
@@ -26,8 +26,8 @@ private fun createSimpleScheduler(from: String, dataRange: IntRange): Array<Byte
|
||||
val stepNum = step.toInt().clamp(dataRange)
|
||||
(startNum .. dataRange.last step stepNum).map { it }
|
||||
}
|
||||
it == "*" -> return null
|
||||
else -> listOf(it.toInt().clamp(dataRange))
|
||||
currentToken == "*" -> return null
|
||||
else -> listOf(currentToken.toInt().clamp(dataRange))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user