Skip to content

Commit 112d4cb

Browse files
committed
Changed property tracker logic
1 parent b95107c commit 112d4cb

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

config/ModuleMetadata.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
"versions": {
2828
"authentication": {
2929
"prerelease": "",
30-
"version": "2.27.5"
30+
"version": "2.27.6"
3131
},
3232
"beta": {
3333
"prerelease": "",
34-
"version": "2.27.5"
34+
"version": "2.27.6"
3535
},
3636
"v1.0": {
3737
"prerelease": "",
38-
"version": "2.27.5"
39-
},
38+
"version": "2.27.6"
39+
}
4040
}
4141
}

tools/Custom/PropertyTracker.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,19 @@ public class PropertyTracker
1010

1111
public void TrackProperty(string propertyName)
1212
{
13-
_trackedProperties.Add(propertyName); // ✅ Track properties that are set
13+
if (!string.IsNullOrWhiteSpace(propertyName))
14+
{
15+
propertyName = char.ToLower(propertyName[0]) + propertyName.Substring(1); // ✅ force camelCase
16+
_trackedProperties.Add(propertyName); // ✅ Track properties that are set
17+
}
1418
}
1519

1620
public bool IsPropertySet(string propertyName)
1721
{
1822
// Ensure that the first character of the property name is UpperCase
1923
if (propertyName.Length > 0)
2024
{
21-
propertyName = char.ToUpper(propertyName[0]) + propertyName.Substring(1);
25+
propertyName = char.ToLower(propertyName[0]) + propertyName.Substring(1); // ✅ match camelCase
2226
}
2327
return _trackedProperties.Contains(propertyName);
2428
}

0 commit comments

Comments
 (0)