Skip to content

chore(controlplane): precompile version validation regex#2783

Merged
matiasinsaurralde merged 1 commit intochainloop-dev:mainfrom
matiasinsaurralde:chore/precompile-version-regexp
Feb 25, 2026
Merged

chore(controlplane): precompile version validation regex#2783
matiasinsaurralde merged 1 commit intochainloop-dev:mainfrom
matiasinsaurralde:chore/precompile-version-regexp

Conversation

@matiasinsaurralde
Copy link
Contributor

Summary

  • Move version format regex compilation to package scope in app/controlplane/pkg/biz/biz.go.
  • Update ValidateVersion to reuse the precompiled matcher instead of compiling per invocation.
  • Reduce repeated regex compilation overhead in version validation logic.

Signed-off-by: Matías Insaurralde <matias@chainloop.dev>
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

@matiasinsaurralde matiasinsaurralde merged commit 70625d8 into chainloop-dev:main Feb 25, 2026
15 checks passed
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.

3 participants