mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
Latest changes from Harvester master - a537c1ae38eb7030542ac371f24ae3336cd9d422
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import cronstrue from 'cronstrue';
|
||||
|
||||
export function isCronValid(schedule = '') {
|
||||
try {
|
||||
const hint = cronstrue.toString(schedule);
|
||||
|
||||
return !!hint;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user