Skip to content

Commit 45bde5d

Browse files
Update gatsby-node.ts
Co-authored-by: Tyler Pfledderer <[email protected]>
1 parent 47f33ec commit 45bde5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gatsby-node.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ const commonRedirectProps = {
3838
* @returns boolean for if file is outdated or not
3939
*/
4040
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, "/")
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, "/")
4343
const splitPath = filePath.split(dirname)
4444
const tempSplitPath = splitPath[1]
4545
const tempSplit = tempSplitPath.split("/")

0 commit comments

Comments
 (0)