Skip to content

Commit 212ff4b

Browse files
author
Iaroslav Popov
authored
fix regex in x-main
I have file `"templates/docs/index.md"` and path `"templates/docs/index.md"` I need the file to be resolved for this path.
1 parent 7aea51a commit 212ff4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/components/docs-viewer/x-main/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default Component.extend({
3838
}
3939
} else {
4040
let file = appFiles
41-
.filter(file => file.match(/template.(hbs|md)/))
41+
.filter(file => file.match(/template.+(hbs|md)/))
4242
.find(file => file.match(path));
4343

4444
return `${projectHref}/edit/master/tests/dummy/app/${file}`;

0 commit comments

Comments
 (0)