From 5e094f4a680c5345f6f145a746e59d35a435016a Mon Sep 17 00:00:00 2001 From: kevinstadler Date: Mon, 22 Apr 2024 00:21:41 +0200 Subject: [PATCH] Render links to fields of other classes as Class.field not Class::field --- src/utils/paths.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,