Open Substancia opened 1 year ago
Just FYI, Cron syntax may vary slightly and may have different variations/implementations in various platforms and tools. So this is a high chance that some syntax variations (pretty valid in some systems) will be invalid here. Just thoughts :)
I made a library, cron-compose
, that inherently validates the standard version of Cron strings (both seconds and non-seconds formats). You could potentially pull it as a dependency (https://bundlephobia.com/package/cron-compose@latest). It's entirely self-contained code so it would not be large to include as part of the library. Feel free to pull parts from it if needed to do your own implementation of the Cron format validation.
Cron schedule formats ( *) don't seem to have validation support in this tool. We could have a new support
isCron()
.If this sounds alright, I would like to be assigned to this and start with this immediately.