File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
packages/config-yaml/src/markdown Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -77,18 +77,21 @@ function getGlobPattern(
77
77
if ( id . uriType !== "file" ) {
78
78
return globs ;
79
79
}
80
- const dir = path . dirname ( id . filePath ) ;
80
+ let dir = path . dirname ( id . filePath ) ;
81
81
if ( dir . includes ( ".continue" ) ) {
82
82
return globs ;
83
83
}
84
+ if ( ! dir . endsWith ( "/" ) ) {
85
+ dir = dir . concat ( "/" ) ;
86
+ }
84
87
const prependDirAndApplyGlobstar = ( glob : string ) => {
85
88
if ( glob . startsWith ( "**" ) ) {
86
- return path . join ( dir , glob ) ;
89
+ return dir . concat ( glob ) ;
87
90
}
88
- return path . join ( dir , ` **/${ glob } ` ) ;
91
+ return dir . concat ( " **/" , glob ) ;
89
92
} ;
90
93
if ( ! globs ) {
91
- return path . join ( dir , "**/*" ) ;
94
+ return dir . concat ( "**/*" ) ;
92
95
}
93
96
if ( Array . isArray ( globs ) ) {
94
97
return globs . map ( prependDirAndApplyGlobstar ) ;
You can’t perform that action at this time.
0 commit comments