Skip to content

Commit

Permalink
Fix detecting feature state- Feature ID may begin with an underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
nirbar committed Jul 15, 2024
1 parent 5cef6d5 commit 787675b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
version:
description: 'Build & package version'
required: true
default: 0.2.1
default: 0.2.2
type: string
jobs:
Build:
Expand Down
2 changes: 1 addition & 1 deletion MsiZapEx/ProductInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ private void Read(string obfuscatedGuid, bool? machineScope)
if (!string.IsNullOrEmpty(f) && !f.Equals("@"))
{
string v = k.GetValue(f) as string;
if ((v != null) && ((v.Length == 0) || char.IsLetter(v[0])))
if ((v != null) && ((v.Length == 0) || char.IsLetter(v[0]) || v[0].Equals('_')))
{
Features.Add(f);
}
Expand Down

0 comments on commit 787675b

Please sign in to comment.