File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ namespace TestStack.BDDfy.Configuration
44{
55 public interface IHumanizer
66 {
7- Func < string , bool > PreserveCasingWhen { get ; set ; }
87 string Humanize ( string input ) ;
98 }
109}
Original file line number Diff line number Diff line change @@ -12,12 +12,10 @@ internal partial class DefaultHumanizer: IHumanizer
1212 {
1313 private static readonly TextInfo textInfo = CultureInfo . CurrentCulture . TextInfo ;
1414
15- public Func < string , bool > PreserveCasingWhen { get ; set ; } = input
16- => input . Replace ( "__" , "-" ) . Contains ( '_' ) ;
17-
1815 public string Humanize ( string input )
1916 {
20- var shouldPreserveCasing = PreserveCasingWhen ( input ) ;
17+ var shouldPreserveCasing = input . Replace ( "__" , "-" ) . Contains ( '_' ) ;
18+
2119 input = TokensPattern ( ) . Replace ( input , "-#$1#-" ) ;
2220
2321 var words = input . Split ( [ '_' , '-' ] ) ;
You can’t perform that action at this time.
0 commit comments