Skip to content

Commit

Permalink
Update packages/docusaurus-plugin-content-blog/src/blogUtils.ts
Browse files Browse the repository at this point in the history
Co-Authored-By: Alexey Pyltsyn <[email protected]>
  • Loading branch information
endiliey and lex111 authored Nov 12, 2019
1 parent 0400d40 commit 1cb4939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-content-blog/src/blogUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {parse, normalizeUrl} from '@docusaurus/utils';
import {LoadContext} from '@docusaurus/types';

export function truncate(fileString: string, truncateMarker: RegExp | string) {
return fileString.split(truncateMarker, 1).shift() || fileString;
return fileString.split(truncateMarker, 1).shift()!;
}

// YYYY-MM-DD-{name}.mdx?
Expand Down

0 comments on commit 1cb4939

Please sign in to comment.