Skip to content

Commit

Permalink
Fix: Default getExampleFilename should work with any extension
Browse files Browse the repository at this point in the history
  • Loading branch information
sapegin committed Mar 31, 2017
1 parent 2cdefd8 commit 3fc8abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/schemas/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module.exports = {
default: componentPath => {
const files = [
path.join(path.dirname(componentPath), 'Readme.md'),
componentPath.replace(/\.jsx?$/, '.md'),
componentPath.replace(path.extname(componentPath), '.md'),
];

for (const file of files) {
Expand Down

0 comments on commit 3fc8abd

Please sign in to comment.