From aff50f0aecc522ccc8ddd723c257e2e6ba1a2bd3 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 3 Nov 2024 12:57:32 +0600 Subject: [PATCH] get back splitting by simple ' ' instead of regex in KrontabConfig --- src/commonMain/kotlin/KrontabConfig.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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