Skip to content

Commit

Permalink
doc: call cwd function
Browse files Browse the repository at this point in the history
PR-URL: #40573
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Voltrex <[email protected]>
  • Loading branch information
dnalborczyk authored and targos committed Nov 6, 2021
1 parent 4870a23 commit 35dbed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -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$/;
Expand Down

0 comments on commit 35dbed2

Please sign in to comment.