Skip to content

Commit

Permalink
fix: update releaseNotes.product_version regex pattern (#668)
Browse files Browse the repository at this point in the history
This fix updates the releaseNotes.product_version regex
pattern to correctly support all required version formats.

Signed-off-by: Sean Conroy <sconroy@redhat.com>
  • Loading branch information
seanconroy2021 authored Nov 4, 2024
1 parent d195543 commit 5e492aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema/dataKeys.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"product_version": {
"type": "string",
"description": "The product version e.g v1.0.0",
"pattern": "^(fbc|[vV]?(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)|[vV]?(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)|[vV]?(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*) ([Aa]lpha|[Bb]eta|fast|tech preview)|[vV]?(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*) ([Aa]lpha|[Bb]eta|fast|tech preview))$"
"pattern": "^(fbc[-]|[vV])?(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:\\.(?:0|[1-9]\\d*))?([-\\s]?([Aa]lpha|[Bb]eta|fast|tech[-\\s]preview)?)$"
},
"product_stream": {
"type": "string",
Expand Down

0 comments on commit 5e492aa

Please sign in to comment.