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 296f4a9 commit 34d9c8fCopy full SHA for 34d9c8f
addon/routes/docs/api/item.js
@@ -18,7 +18,7 @@ export default Route.extend({
18
} else {
19
// Create a regex that will match modules by either the path, or the
20
// pod-path (/component, /route, etc)
21
- let type = path.match(/^(.*)s\//)[1];
+ let type = path.match(/^([\w-]*)s\//)[1];
22
let pathRegex = new RegExp(`${path}(/${type})?$`);
23
24
let modules = this.store.peekAll('module');
0 commit comments