We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5f3d5d commit e7bddd2Copy full SHA for e7bddd2
src/fileStore/file-store.ts
@@ -198,7 +198,10 @@ export class FileStore {
198
const pattern = fileMap.pathTemplate.replace('{teamId}', '').replace('{name}.yaml', '')
199
const [beforeTeam, afterTeam] = pattern.split('//')
200
for (const filePath of this.store.keys()) {
201
- if (filePath.startsWith(beforeTeam) && filePath.includes(afterTeam) && filePath.endsWith('.yaml')) {
+ const matchesPattern = afterTeam
202
+ ? filePath.startsWith(beforeTeam) && filePath.includes(afterTeam) && filePath.endsWith('.yaml')
203
+ : filePath.startsWith(beforeTeam) && filePath.endsWith('.yaml')
204
+ if (matchesPattern) {
205
const content = this.store.get(filePath)
206
if (content) result.set(filePath, content)
207
}
0 commit comments