File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
src/Stravaig.Configuration.Diagnostics.Core/Renderers Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ Date: ???
66
77### Bugs
88
9+ - #111 : Dots also get converted to underlines in structured keys.
10+
911### Features
1012
1113### Miscellaneous
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ public abstract class Renderer
99 {
1010 private const string PlaceholderPartJoin = "_" ;
1111
12- private bool _convertDotToUnderscore = false ;
13-
1412 /// <summary>
1513 /// Creates a safely named placeholder for use in structured renderers.
1614 /// </summary>
@@ -34,12 +32,10 @@ protected string Placeholder(params string[] parts)
3432 {
3533 if ( charPos == 0 && character >= '0' && character <= '9' )
3634 placeholderBuilder . Append ( '_' ) ;
37- if ( char . IsLetterOrDigit ( character ) )
38- placeholderBuilder . Append ( character ) ;
39- if ( character == '.' )
40- placeholderBuilder . Append ( _convertDotToUnderscore ? '_' : '.' ) ;
41- else
42- placeholderBuilder . Append ( '_' ) ;
35+ placeholderBuilder . Append (
36+ char . IsLetterOrDigit ( character )
37+ ? character
38+ : '_' ) ;
4339 charPos ++ ;
4440 }
4541
You can’t perform that action at this time.
0 commit comments