diff --git a/index.ts b/index.ts index 4a27fab..cc3cc56 100644 --- a/index.ts +++ b/index.ts @@ -259,7 +259,7 @@ async function validateFrontmatter( while `eslint-plugin-mdx` gives an absolute path */ const vFilePathRel = path.relative(remarkCwd, vFile.path); - if (minimatch(vFilePathRel, mdPathCleaned)) { + if (minimatch(vFilePathRel, mdPathCleaned, {windowsPathsNoEscape: true})) { schemaPathFromCwd = path.join(remarkCwd, globSchemaPath); } }