Skip to content

Commit e2729eb

Browse files
committed
Clean leading periods from extensions.
1 parent e2f8d49 commit e2729eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reducers/collections.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function validateCollection(configCollection) {
4848
const selectors = {
4949
[FOLDER]: {
5050
entryExtension(collection) {
51-
return collection.get('extension') || formatToExtension(collection.get('format') || 'frontmatter');
51+
return (collection.get('extension') || formatToExtension(collection.get('format') || 'frontmatter')).replace(/^\./, '');
5252
},
5353
fields(collection) {
5454
return collection.get('fields');

0 commit comments

Comments
 (0)