mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2024-11-22 00:03:55 +00:00
get back splitting by simple ' ' instead of regex in KrontabConfig
This commit is contained in:
parent
e0f9db9c60
commit
aff50f0aec
@ -96,7 +96,7 @@ value class KrontabConfig(
|
||||
var yearParsed: Array<Int>? = null
|
||||
var millisecondsParsed: Array<Short>? = 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
|
||||
|
Loading…
Reference in New Issue
Block a user