8000 Enhancement: Improve Regex for NPM Version Matching in `set-version.sh` by isaac-mercieca · Pull Request #36080 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Enhancement: Improve Regex for NPM Version Matching in set-version.sh - #36080

Merged
jonkoops merged 2 commits into
keycloak:mainfrom
RS2-Software-p-l-c:versions-regex
Dec 23, 2024
Merged

jonkoops merged 2 commits into
keycloak:mainfrom
RS2-Software-p-l-c:versions-regex

Conversation

@isaac-mercieca
@isaac-mercieca isaac-mercieca commented Dec 20, 2024 •
Copy link
Copy Markdown
Contributor

This pull request improves the regex in the set-version.sh script to ensure it matches version strings with literal dots (.) and avoids unintended patterns.

The previous regex did not escape the period (.), which could lead to incorrect matches and NPM version conversions. This enhancement refines the regex for greater reliability in handling version strings.

Related Issue:
Resolves #36079

@isaac-mercieca
isaac-mercieca requested a review from a team as a code owner December 20, 2024 08:44
Signed-off-by: Isaac Mercieca <isaac.mercieca@rs2.com>
@jonkoops jonkoops left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this locally and seems to work fine, LGTM.

@jonkoops
jonkoops enabled auto-merge (squash) December 20, 2024 18:07
@jonkoops
Copy link
Copy Markdown
Contributor

Please do not merge main into your branch unless there are conflicts. It generates additional CI runs and notifications, and is not required for a merge.

@mhajas mhajas left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving based on the review from @jonkoops

@jonkoops
jonkoops merged commit ce18f96 into keycloak:main Dec 23, 2024
@isaac-mercieca
isaac-mercieca deleted the versions-regex branch January 3, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suggestion: Improve Regex for NPM Version Conversion in set-version.sh

3 participants

0