Skip to content

Commit 395628a

Browse files
committed
update 'Edit this page' link regex
1 parent 8534af4 commit 395628a

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
@@ -80,7 +80,7 @@ export default Component.extend({
8080
}
8181
} else {
8282
let file = appFiles
83-
.filter(file => file.match(/template.+(hbs|md)/))
83+
.filter(file => file.match(/\.(hbs|md)$/))
8484
.find(file => file.match(path));
8585

8686
return `${projectHref}/edit/${primaryBranch}/tests/dummy/app/${file}`;

0 commit comments

Comments
 (0)