Skip to content
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

Added regular expression matching for artifact version #346

Merged
merged 1 commit into from
Dec 4, 2021

Conversation

ao-apps
Copy link
Contributor

@ao-apps ao-apps commented Dec 4, 2021

When the version field begins with ~ (tilde), everything following the tilde is a case-insensitive regular
expression matched against artifact version.

When the version field begins with !~ (not-tilde), everything following the not-tilde is a case-insensitive regular
expression with a negated match against artifact version.

This may be used, for example, to have separate PGP signing keys for continuous integration snapshot builds,
while releases are signed by more protected PGP keys unavailable to the continuous integration platform.

When the version field begins with ` ~ ` (tilde), everything following the tilde is a case-insensitive regular
expression matched against artifact version.

When the version field begins with ` !~ ` (not-tilde), everything following the not-tilde is a case-insensitive regular
expression with a negated match against artifact version.

This may be used, for example, to have separate PGP signing keys for continuous integration snapshot builds,
while releases are signed by more protected PGP keys unavailable to the continuous integration platform.
@ao-apps
Copy link
Contributor Author

ao-apps commented Dec 4, 2021

We added a !~ prefix for a negated regular expression match. This is inspired by the PostgreSQL !~ operator.

@ao-apps ao-apps marked this pull request as ready for review December 4, 2021 01:32
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 4, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@slawekjaranowski slawekjaranowski added the enhancement New feature or request. label Dec 4, 2021
@slawekjaranowski slawekjaranowski merged commit 91e8f19 into s4u:master Dec 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request.
Development

Successfully merging this pull request may close these issues.

Pattern-based version matching, specifically for SNAPSHOT-only keys
2 participants