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

Use basename instead of regex #173

Merged
merged 1 commit into from
Feb 4, 2025
Merged

Use basename instead of regex #173

merged 1 commit into from
Feb 4, 2025

Conversation

sdatko
Copy link
Member

@sdatko sdatko commented Feb 4, 2025

It turns out that in some cases we have projects in ospinfo that have no downstream forks – in such cases, there is osp-patches key set to empty string and regular expression breaks. Also, the solution with regular expression may lead to ambiguity (is a/b/c matched as a+b/c or a/b+c?), hence we replace that with just basename from path.

It turns out that in some cases we have projects
in ospinfo that have no downstream forks – in such cases,
there is osp-patches key set to empty string and regular
expression breaks. Also, the solution with regular expression
may lead to ambiguity (is a/b/c matched as a+b/c or a/b+c?),
hence we replace that with just basename from path.
@tbreeds
Copy link

tbreeds commented Feb 4, 2025

Looks good to me :)

@sdatko sdatko merged commit d63f670 into main Feb 4, 2025
2 checks passed
@sdatko sdatko deleted the fix-basename branch February 4, 2025 01:21
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.

2 participants