File tree Expand file tree Collapse file tree 2 files changed +1
-14
lines changed
Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -165,12 +165,3 @@ export function isValidImageReference(reference: string): boolean {
165165 return false ;
166166 }
167167}
168-
169- // Regular Expression Source: OCI Image Spec V1
170- // https://github.com/opencontainers/image-spec/blob/d60099175f88c47cd379c4738d158884749ed235/descriptor.md?plain=1#L143
171- const digestIsValid = ( digest : string ) => / ^ s h a 2 5 6 : [ a - f 0 - 9 ] { 64 } $ / . test ( digest ) ;
172-
173- // Regular Expression Source: OCI Image Spec V1
174- // https://github.com/opencontainers/distribution-spec/blob/3940529fe6c0a068290b27fb3cd797cf0528bed6/spec.md?plain=1#L160
175- const tagIsValid = ( tag : string ) =>
176- / ^ [ a - z A - Z 0 - 9 _ ] [ a - z A - Z 0 - 9 . _ - ] { 0 , 127 } $ / . test ( tag ) ;
Original file line number Diff line number Diff line change @@ -7,11 +7,7 @@ import { DockerFileAnalysis } from "./dockerfile/types";
77import { extractImageContent } from "./extractor" ;
88import { ImageName } from "./extractor/image" ;
99import { ExtractAction , ExtractionResult } from "./extractor/types" ;
10- import {
11- isValidImageReference ,
12- ParsedImageReference ,
13- parseImageReference ,
14- } from "./image-reference" ;
10+ import { isValidImageReference , parseImageReference } from "./image-reference" ;
1511import { fullImageSavePath } from "./image-save-path" ;
1612import { getArchivePath , getImageType } from "./image-type" ;
1713import { isNumber , isTrue } from "./option-utils" ;
You can’t perform that action at this time.
0 commit comments