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 Beth Griggs committed 2021-11-25 11:23:04 +00:00
1 parent d732ff4614
commit d72fb7df4a
1 file changed
+1 -1
+1 -1
View File
@@ -893,7 +893,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$/;