mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-30 06:50:36 +02:00
More fixes
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
This commit is contained in:
parent
6d3d416f58
commit
c7c833fe77
16 changed files with 59 additions and 32 deletions
|
@ -32,7 +32,7 @@ import {LoadContext} from '@docusaurus/types';
|
|||
import {validateBlogPostFrontMatter} from './blogFrontMatter';
|
||||
|
||||
export function truncate(fileString: string, truncateMarker: RegExp): string {
|
||||
return fileString.split(truncateMarker, 1).shift()!;
|
||||
return fileString.split(truncateMarker, 1).shift() as string;
|
||||
}
|
||||
|
||||
export function getSourceToPermalink(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue