fix(server): support special characters in library paths (#9385)

Support special characters in library paths
This commit is contained in:
Sushain Cherivirala
2024-05-13 17:44:21 -04:00
committed by GitHub
parent a05c990718
commit 4e6aeeda4d
2 changed files with 12 additions and 13 deletions

View File

@@ -76,17 +76,6 @@ const tests: Test[] = [
'/albums/image3.jpg': true,
},
},
{
test: 'should support globbing paths',
options: {
pathsToCrawl: ['/photos*'],
},
files: {
'/photos1/image1.jpg': true,
'/photos2/image2.jpg': true,
'/images/image3.jpg': false,
},
},
{
test: 'should crawl a single path without trailing slash',
options: {
@@ -179,6 +168,15 @@ const tests: Test[] = [
[`/photos/3.jpg`]: false,
},
},
{
test: 'should support special characters in paths',
options: {
pathsToCrawl: ['/photos (new)'],
},
files: {
['/photos (new)/1.jpg']: true,
},
},
];
describe(StorageRepository.name, () => {