We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47f33ec commit 45bde5dCopy full SHA for 45bde5d
gatsby-node.ts
@@ -38,8 +38,8 @@ const commonRedirectProps = {
38
* @returns boolean for if file is outdated or not
39
*/
40
const checkIsMdxOutdated = (filePath: string): boolean => {
41
- // .replace(/\\./g, "/") to replace \ in windows paths ex: C:\\folder\\myfile.txt becomes C:/folder/myfile.txt
42
- const dirname = path.resolve("./").replace(/\\./g, "/")
+ // .replace(/\\/g, "/") to replace \ in windows paths ex: C:\\folder\\myfile.txt becomes C:/folder/myfile.txt
+ const dirname = path.resolve("./").replace(/\\/g, "/")
43
const splitPath = filePath.split(dirname)
44
const tempSplitPath = splitPath[1]
45
const tempSplit = tempSplitPath.split("/")
0 commit comments