diff --git a/src/commonMain/kotlin/KrontabConfig.kt b/src/commonMain/kotlin/KrontabConfig.kt index 62c9062..58bdbe0 100644 --- a/src/commonMain/kotlin/KrontabConfig.kt +++ b/src/commonMain/kotlin/KrontabConfig.kt @@ -96,7 +96,7 @@ value class KrontabConfig( var yearParsed: Array? = null var millisecondsParsed: Array? = null val (secondsSource, minutesSource, hoursSource, dayOfMonthSource, monthSource) = template - .split(Regex("\\s")) + .split(" ") .filter { it.matches(KrontabConfigPartRegex) } // filter garbage from string .let { if (it.size < 5) { // reconstruction in case of insufficient arguments; 5 is amount of required arguments out of latest also code