diff --git a/src/utils/paths.js b/src/utils/paths.js index b2b6f1caa..a1bd31d40 100644 --- a/src/utils/paths.js +++ b/src/utils/paths.js @@ -31,9 +31,9 @@ const referencePath = (name, libraryName, lang) => { }; /** - Used to convert fill_ to fill() and PShape_width to PShape::width + Used to convert fill_ to fill() and PShape_width to PShape.width **/ -const pathToName = (name) => name.replace(/_$/g, '()').replace(/_/g, '::'); +const pathToName = (name) => name.replace(/_$/g, '()').replace(/_/g, '.'); module.exports = { exampleSlug,