diff --git a/packages/@markuplint/file-resolver/src/force-import-json-in-module.ts b/packages/@markuplint/file-resolver/src/force-import-json-in-module.ts index b8c6e5d179..1c6a334203 100644 --- a/packages/@markuplint/file-resolver/src/force-import-json-in-module.ts +++ b/packages/@markuplint/file-resolver/src/force-import-json-in-module.ts @@ -32,7 +32,7 @@ export async function forceImportJsonInModule(modPath: string) { .replace(/^file:\/\//, '') .replaceAll('/', path.sep) // Windows - .replace(/^[/\\][a-z]:/i, ''); + .replace(/^[/\\][a-z]:/i, ''); // change here fLog('Find JSON file path: %s', normalizePath); const fileContent = await readFile(normalizePath, { encoding: 'utf8' });