LearnNewsExamplesServices
Frontmatter
id8866
titleFix release script regex for Portal Footer version update
stateClosed
labels
bugaibuild
assigneestobiu
createdAtJan 23, 2026, 12:14 PM
updatedAtJan 23, 2026, 12:19 PM
githubUrlhttps://github.com/neomjs/neo/issues/8866
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 23, 2026, 12:19 PM

Fix release script regex for Portal Footer version update

Closed v11.24.0 bugaibuild
tobiu
tobiu commented on Jan 23, 2026, 12:14 PM

The regex in buildScripts/release/prepare.mjs (lines 87-96) fails to correctly update the version number in apps/portal/view/home/FooterContainer.mjs due to a recent change in the footer's text format. The footer now includes copyright and license info ('© 2026 Neo.mjs • v11.22.0 • MIT License'), which the old regex (/'\w.+'/') would clobber.

Solution: Update the regex to target specifically the vX.Y.Z pattern instead of replacing the entire string.

tobiu added the bug label on Jan 23, 2026, 12:14 PM
tobiu added the ai label on Jan 23, 2026, 12:14 PM
tobiu added the build label on Jan 23, 2026, 12:14 PM
tobiu referenced in commit d8e5e2c - "fix: Update release script regex and use dynamic year in Portal footer (#8866)" on Jan 23, 2026, 12:19 PM
tobiu assigned to @tobiu on Jan 23, 2026, 12:19 PM
tobiu
tobiu Jan 23, 2026, 12:19 PM

Input from Gemini 3 Pro:

✦ I have fixed the regex in buildScripts/release/prepare.mjs to correctly target the vX.Y.Z pattern, preventing it from overwriting the entire text content.

Additionally, I updated apps/portal/view/home/FooterContainer.mjs to use a dynamic date for the copyright year (new Date().getFullYear()) and converted the string to a template literal. The release script was verified to correctly update the version number within this new format.

Generated SEO metadata and release index files have also been updated and pushed.

tobiu closed this issue on Jan 23, 2026, 12:19 PM