-
Notifications
You must be signed in to change notification settings - Fork 167
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
Relax image repo and git repo regexes #915
Conversation
✅ Deploy Preview for docs-kargo-akuity-io canceled.
|
0346c52
to
55b840a
Compare
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #915 +/- ##
=======================================
Coverage 46.04% 46.04%
=======================================
Files 95 95
Lines 6759 6759
=======================================
Hits 3112 3112
Misses 3497 3497
Partials 150 150
☔ View full report in Codecov by Sentry. |
@moensch this is stellar and extemely thorough. ❤️ Changes to regular expressions are sometimes very hard to review. I love how easy you made it to see the before and after results. I did make some suggestions because if we're going to touch these particular expressions anyway, I think there are other outstanding things that need to be addressed. I'd like to know what you think. I especially want to know if you feel the proposed alternatives do indeed retain the "relaxation" you were out to get, which I think can be summarized as allowing both |
Fixes akuity#846 Fixes akuity#870 Signed-off-by: Samuel Suter <samuel@suter.is>
55b840a
to
8ea79c6
Compare
@moensch thanks so much! |
Signed-off-by: Samuel Suter <samuel@suter.is> Signed-off-by: Tal Hason <thason@redhat.com>
Signed-off-by: Samuel Suter <samuel@suter.is>
Fixes #846
Fixes #870
Note
I do have some code for a unit test ready-ish to validate this regex, but it does use
go/ast
andgo/parser
and is a bit .. involved. I pushed Copilot to its limits :)Holler if you'd like me to add it.
Git regex validation
before
after
https://regex101.com/r/mjk9Ar/1
Docker repo regex validation
before
after
https://regex101.com/r/cnnffH/1