doc: call cwd function

PR-URL: https://github.com/nodejs/node/pull/40573
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Voltrex <mohammadkeyvanzade94@gmail.com>
This commit is contained in:
Daniel Nalborczyk authored and Michaël Zasso committed 2021-11-06 10:57:04 +01:00
1 parent 4870a23ccc
commit 35dbed21f2
1 file changed
+1 -1
+1 -1
View File
@@ -898,7 +898,7 @@ import { fileURLToPath, pathToFileURL } from 'url';
import CoffeeScript from 'coffeescript';
const baseURL = pathToFileURL(`${cwd}/`).href;
const baseURL = pathToFileURL(`${cwd()}/`).href;
// CoffeeScript files end in .coffee, .litcoffee or .coffee.md.
const extensionsRegex = /\.coffee$|\.litcoffee$|\.coffee\.md$/;