File tree Expand file tree Collapse file tree
src/channels/plugins/contracts/test-helpers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,17 +54,17 @@ function isBareMissingModuleSpecifier(text: string): boolean {
5454 const specifier = match ?. [ 1 ] ;
5555 return Boolean (
5656 specifier &&
57- ! specifier . startsWith ( "." ) &&
58- ! specifier . startsWith ( "/" ) &&
59- ! path . win32 . isAbsolute ( specifier ) ,
57+ ! specifier . startsWith ( "." ) &&
58+ ! specifier . startsWith ( "/" ) &&
59+ ! path . win32 . isAbsolute ( specifier ) ,
6060 ) ;
6161}
6262
6363function hasExternalDistArtifactPath ( text : string ) : boolean {
6464 const candidates = [
65- ...text . matchAll ( / f i l e : \/ \/ ( \/ [ ^ \s ) ] + [ \ /\\ ] d i s t (?: - r u n t i m e ) ? [ \ /\\ ] [ ^ \s ) ] * ) / gu) ,
65+ ...text . matchAll ( / f i l e : \/ \/ ( \/ [ ^ \s ) ] + [ / \\ ] d i s t (?: - r u n t i m e ) ? [ / \\ ] [ ^ \s ) ] * ) / gu) ,
6666 ...text . matchAll ( / ( \b [ A - Z a - z ] : \\ [ ^ \s ) ] + \\ d i s t (?: - r u n t i m e ) ? \\ [ ^ \s ) ] * ) / gu) ,
67- ...text . matchAll ( / ( \/ [ ^ \s ) ] + [ \ /\\ ] d i s t (?: - r u n t i m e ) ? [ \ /\\ ] [ ^ \s ) ] * ) / gu) ,
67+ ...text . matchAll ( / ( \/ [ ^ \s ) ] + [ / \\ ] d i s t (?: - r u n t i m e ) ? [ / \\ ] [ ^ \s ) ] * ) / gu) ,
6868 ] ;
6969 return candidates . some ( ( match ) => {
7070 const candidate = match [ 1 ] ;
You can’t perform that action at this time.
0 commit comments