-
Notifications
You must be signed in to change notification settings - Fork 166
Closed
Description
Most appropriate sections of the p5.js website?
Reference
What is your operating system?
Mac OS
Web browser and version
Firefox
Actual Behavior
In the reference builder, we add a v
to the start of the latest release if it seems to all be numeric:
p5.js-website/src/scripts/parsers/reference.ts
Lines 26 to 28 in df16dae
if (/^\d+\.\d+\.\d+$/.exec(latestRelease)) { | |
latestRelease = 'v' + latestRelease; | |
} |
This regex breaks for beta releases, e.g. 2.0.0-beta.5
. We're about to release 2.0 so we won't have beta releases for a while, but we may want this working for the future when we do beta 3.0 releases.
Expected Behavior
The regex should match strings like 2.0.0-beta.5
too.
Steps to reproduce
Manually edit this
export const p5Version = "v2.0.0-beta.8" as const; |
Would you like to work on the issue?
Feel free to take this on for me!
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't working
Type
Projects
Status
Completed