Skip to content

Commit

Permalink
refactor(v2): make semicolon optional in imports for excerpt
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Apr 29, 2020
1 parent 57c7550 commit 99a5836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export function getSubFolder(file: string, refDir: string): string | null {
}

// Regex for an import statement.
const importRegexString = '^(.*import){1}(.+){0,1}\\s[\'"](.+)[\'"];';
const importRegexString = '^(.*import){1}(.+){0,1}\\s[\'"](.+)[\'"];?';

export function parse(
fileString: string,
Expand Down

0 comments on commit 99a5836

Please sign in to comment.