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

Make Netkan nested GameData check case insensitive #3682

Merged
merged 1 commit into from Oct 24, 2022

Conversation

HebaruSan
Copy link
Member

Problem

KSP-CKAN/NetKAN#9396 initially had an auto-generated netkan that installed to paths like GameData/ESA_Rocket-0.1/Gamedata/Vega/AVUM.png:

https://github.com/KSP-CKAN/NetKAN/actions/runs/3314556923/jobs/5473995107

No error was thrown because the ZIP contains Gamedata instead of GameData, even though this is just as wrong as it would be if the author had used the standard capitalization.

Changes

Now the nested GameData check is case insensitive, courtesy of StringComparison.InvariantCultureIgnoreCase.

I'll self-review this since it's simple and low risk.

@HebaruSan HebaruSan added Bug Easy This is easy to fix Pull request Netkan Issues affecting the netkan data labels Oct 24, 2022
@HebaruSan HebaruSan merged commit e45a27b into KSP-CKAN:master Oct 24, 2022
@HebaruSan HebaruSan deleted the fix/gamedata-case branch October 24, 2022 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Easy This is easy to fix Netkan Issues affecting the netkan data Pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant