From 689d5151384f4e91f9945437bad228f742717005 Mon Sep 17 00:00:00 2001 From: Victor Korzunin Date: Tue, 5 Nov 2019 00:21:21 +0100 Subject: [PATCH] treat next letter after `.` as cap --- camel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camel.go b/camel.go index 9f3381a..c2f01b1 100644 --- a/camel.go +++ b/camel.go @@ -49,7 +49,7 @@ func toCamelInitCase(s string, initCase bool) string { n += string(v) } } - if v == '_' || v == ' ' || v == '-' { + if v == '_' || v == ' ' || v == '-' || v == '.' { capNext = true } else { capNext = false