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

chore: escape proj in regex #7985

Merged
merged 3 commits into from Dec 19, 2021
Merged

Conversation

crenshaw-dev
Copy link
Collaborator

The only regex control character that's allowed in a project name is .. But still, best practice is to escape. Plus code gets copy/pasted, so good to have a solid example.

Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
@codecov
Copy link

codecov bot commented Dec 17, 2021

Codecov Report

Merging #7985 (8fe3673) into master (914fb83) will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7985      +/-   ##
==========================================
+ Coverage   41.44%   41.49%   +0.05%     
==========================================
  Files         173      173              
  Lines       22575    22576       +1     
==========================================
+ Hits         9357     9369      +12     
+ Misses      11886    11875      -11     
  Partials     1332     1332              
Impacted Files Coverage Δ
pkg/apis/application/v1alpha1/types.go 55.19% <100.00%> (ø)
util/settings/settings.go 47.60% <0.00%> (ø)
util/webhook/webhook.go 68.34% <0.00%> (+5.71%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 914fb83...8fe3673. Read the comment docs.

Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
@crenshaw-dev crenshaw-dev marked this pull request as ready for review December 17, 2021 23:27
@pasha-codefresh
Copy link
Member

LGTM

Copy link
Member

@jannfis jannfis left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@jannfis jannfis merged commit 3bd8688 into argoproj:master Dec 19, 2021
alexmt pushed a commit that referenced this pull request Dec 30, 2021
* chore: escape proj in regex

Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>

* chore: test normal cases

Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>

* chore: typo

Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
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.

None yet

3 participants