Skip to content

Commit 3ba269a

Browse files
authored
Merge pull request #3659 from cassiano/displaying-p5js-version-in-about-page
Displaying p5.js version in About page
2 parents 1fab3ad + 7f82820 commit 3ba269a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/modules/About/pages/About.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const About = () => {
5252

5353
const p5version = useSelector((state) => {
5454
const index = state.files.find((file) => file.name === 'index.html');
55-
return index?.content.match(/\/p5\.js\/([\d.]+)\//)?.[1];
55+
return index?.content.match(/\/p5@([\d.]+)\//)?.[1];
5656
});
5757

5858
return (

0 commit comments

Comments
 (0)