Skip to content

Commit

Permalink
Clean leading periods from extensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
tech4him1 committed Feb 27, 2018
1 parent e2f8d49 commit e2729eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reducers/collections.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function validateCollection(configCollection) {
const selectors = {
[FOLDER]: {
entryExtension(collection) {
return collection.get('extension') || formatToExtension(collection.get('format') || 'frontmatter');
return (collection.get('extension') || formatToExtension(collection.get('format') || 'frontmatter')).replace(/^\./, '');
},
fields(collection) {
return collection.get('fields');
Expand Down

0 comments on commit e2729eb

Please sign in to comment.