mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-08 06:37:18 +02:00
refactor(v2): make semicolon optional in imports for excerpt (#2696)
This commit is contained in:
parent
57c7550a87
commit
16dd08a690
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ export function getSubFolder(file: string, refDir: string): string | null {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Regex for an import statement.
|
// Regex for an import statement.
|
||||||
const importRegexString = '^(.*import){1}(.+){0,1}\\s[\'"](.+)[\'"];';
|
const importRegexString = '^(.*import){1}(.+){0,1}\\s[\'"](.+)[\'"];?';
|
||||||
|
|
||||||
export function parse(
|
export function parse(
|
||||||
fileString: string,
|
fileString: string,
|
||||||
|
|
Loading…
Add table
Reference in a new issue