mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-10 20:50:08 +02:00
6 lines
298 B
JavaScript
6 lines
298 B
JavaScript
// Accept the existing major tags and exact patch pins, with a required image variant.
|
|
// A digest, when present, must be a complete SHA-256 pin.
|
|
export function isNode24ImageTag(tag) {
|
|
return /^24(?:\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*))?-[a-z0-9][a-z0-9._-]*(?:@sha256:[a-f0-9]{64})?$/.test(tag);
|
|
}
|