mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 08:47:40 +00:00
fix: support legacy and beta prerelease version formats
This commit is contained in:
@@ -27,7 +27,7 @@ export function channelToNpmTag(channel: UpdateChannel): string {
|
||||
}
|
||||
|
||||
export function isBetaTag(tag: string): boolean {
|
||||
return tag.toLowerCase().includes("-beta");
|
||||
return /(?:^|[.-])beta(?:[.-]|$)/i.test(tag);
|
||||
}
|
||||
|
||||
export function isStableTag(tag: string): boolean {
|
||||
|
||||
Reference in New Issue
Block a user