mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fix/open book spcl characters (#9888)
* upgrade fast-glob that escapes them. * added tests * added test with brackets in bookPath
This commit is contained in:
@@ -61,7 +61,7 @@ export class BookModel implements azdata.nb.NavigationProvider {
|
||||
maxDepth = undefined;
|
||||
}
|
||||
|
||||
let p: string = path.join(folderPath, '**', '_data', 'toc.yml').replace(/\\/g, '/');
|
||||
let p: string = path.posix.join(glob.escapePath(folderPath.replace(/\\/g, '/')), '**', '_data', 'toc.yml');
|
||||
let tableOfContentPaths: string[] = await glob(p, { deep: maxDepth });
|
||||
if (tableOfContentPaths.length > 0) {
|
||||
this._tableOfContentPaths = this._tableOfContentPaths.concat(tableOfContentPaths);
|
||||
|
||||
Reference in New Issue
Block a user