mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
Refactor schedule service and add cron support
This commit is contained in:
1 parent
dbf48d4691
commit
47524876aa
24 files changed
+652
-139
No files matched your search
@@ -10,3 +10,8 @@ export function compareVersions(v1: string, v2: string): number {
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
export function isValidVersion(version: string): boolean {
|
||||
const semverRegex = /^\d+\.\d+\.\d+$/
|
||||
return semverRegex.test(version)
|
||||
}
|
||||
Reference in new issue
Block a user