File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments