@@ -302,7 +302,7 @@ func (ti TokenizerImpl) Tokenize(str string, allowedSymbols []rune, numberRules
302
302
} else {
303
303
current = token .AppendRune (ti .caser , current , r )
304
304
}
305
- } else if ti .delimiters .Contains (r ) {
305
+ } else if ti .delimiters .Contains (r ) || unicode . IsSpace ( r ) {
306
306
if current .Len () > 0 {
307
307
if foundLower {
308
308
tokens = append (tokens , current )
@@ -746,20 +746,20 @@ func ToScreamingKebab[T ~string](str T, options ...Opts) T {
746
746
return ToDelimited (str , '-' , false , options ... )
747
747
}
748
748
749
- // ToDot transforms the case of str into Lower Dot Notation Case (e.g. an.example.string) using
749
+ // ToDotNotation transforms the case of str into Lower Dot Notation Case (e.g. an.example.string) using
750
750
// either the provided Converter or the DefaultConverter otherwise.
751
751
//
752
- // caps.ToDot ("This is [an] {example}${id32}.") // this.is.an.example.id.32
753
- func ToDot [T ~ string ](str T , options ... Opts ) T {
752
+ // caps.ToDotNotation ("This is [an] {example}${id32}.") // this.is.an.example.id.32
753
+ func ToDotNotation [T ~ string ](str T , options ... Opts ) T {
754
754
return ToDelimited (str , '.' , true , options ... )
755
755
}
756
756
757
- // ToScreamingKebab transforms the case of str into Screaming Kebab Case (e.g.
758
- // AN- EXAMPLE- STRING) using either the provided Converter or the
757
+ // ToScreamingDotNotation transforms the case of str into Screaming Kebab Case (e.g.
758
+ // AN. EXAMPLE. STRING) using either the provided Converter or the
759
759
// DefaultConverter otherwise.
760
760
//
761
- // caps.ToScreamingDot ("This is [an] {example}${id32}.") // THIS.IS.AN.EXAMPLE.ID.32
762
- func ToScreamingDot [T ~ string ](str T , options ... Opts ) T {
761
+ // caps.ToScreamingDotNotation ("This is [an] {example}${id32}.") // THIS.IS.AN.EXAMPLE.ID.32
762
+ func ToScreamingDotNotation [T ~ string ](str T , options ... Opts ) T {
763
763
return ToDelimited (str , '.' , false , options ... )
764
764
}
765
765
0 commit comments