Skip to content

Commit

Permalink
Apparently Manifest ID's arent always 19 digits long.. (Fixes #9)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinsi55 committed Jul 14, 2022
1 parent 8c492a1 commit 7dd76c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AppInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private void OnProductInfo(SteamApps.PICSProductInfoCallback callback) {
.FirstOrDefault(x => x.Name == "manifests")?.Children
.FirstOrDefault(x => x.Name == "public")?.Value;

if(manifest?.Length == 19)
if(manifest?.Length >= 16)
manifestId = manifest;

Debug.WriteLine(manifestId);
Expand Down
2 changes: 1 addition & 1 deletion Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private void applyButton_Click(object sender, EventArgs e) {
return;
}

if(!Regex.IsMatch(textbox_manifest.Text, "[0-9]{19}")) {
if(!Regex.IsMatch(textbox_manifest.Text, "[0-9]{16,19}")) {
Bad("The Manifest ID you entered is incorrect. It should be a 19 digit number. Make sure to not accidently enter any spaces");
return;
}
Expand Down

0 comments on commit 7dd76c2

Please sign in to comment.