-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: fix the known issues filter script #19664
base: main
Are you sure you want to change the base?
Conversation
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 743f319c60cf6deb9f659f75fea4a158e2638fcf more detailssdk-nrf:
Github labels
List of changed files detected by CI (1)
Outputs:ToolchainVersion: Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds. Note: This comment is automatically posted by the Documentation Publish GitHub Action. |
Update the script so it can work for v2.9.0-nRF54H20-rc1. Signed-off-by: Bartosz Gentkowski <[email protected]>
3ee1c2a
to
743f319
Compare
Any way to test this before approval/merge, @gmarull ? |
spanTag.setAttribute("version", className); | ||
spanTag.classList.add("versiontag"); | ||
filterName = className.replace(/v(\d+)-(\d+)-(\d+)/i, 'v$1.$2.$3'); | ||
spanTag.setAttribute("filter", className); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
diff due to extra spaces being added?
spanTag.setAttribute("version", className); | ||
spanTag.classList.add("versiontag"); | ||
// Updated replace method to handle additional segments after vX-X-X | ||
filterName = className.replace(/v(\d+)-(\d+)-(\d+)(-.*)?/, (match, p1, p2, p3, p4) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this regex be used everywhere?
Update the script so it can work for v2.9.0-nRF54H20-rc1.