Skip to content

Commit

Permalink
Merge #3682 Make Netkan nested GameData check case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Oct 24, 2022
2 parents e2aca52 + 2784037 commit e45a27b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ All notable changes to this project will be documented in this file.
- [Infra] Improve translation process (#3648 by: Olympic1; reviewed: HebaruSan)
- [Netkan] Inflation error for `version_min` and `version_max` (#3657 by: HebaruSan; reviewed: DasSkelett)
- [Netkan] GitLab kref (#3661 by: HebaruSan; reviewed: techman83)
- [Netkan] Make Netkan nested GameData check case insensitive (#3682 by: HebaruSan)

## v1.31.0 (IKAROS)

Expand Down
4 changes: 3 additions & 1 deletion Netkan/Validators/InstallsFilesValidator.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System;
using System.Linq;

using CKAN.NetKAN.Model;
Expand Down Expand Up @@ -39,7 +40,8 @@ public void Validate(Metadata metadata)

// Make sure no paths include GameData other than at the start
var gamedatas = allFiles
.Where(p => p.StartsWith("GameData") && p.LastIndexOf("/GameData/") > 0)
.Where(p => p.StartsWith("GameData", StringComparison.InvariantCultureIgnoreCase)
&& p.LastIndexOf("/GameData/", StringComparison.InvariantCultureIgnoreCase) > 0)
.OrderBy(f => f)
.ToList();
if (gamedatas.Any())
Expand Down

0 comments on commit e45a27b

Please sign in to comment.