From 09576ff3877c9539f78b4eace2bc2fbd62211f76 Mon Sep 17 00:00:00 2001 From: Arran Ubels Date: Wed, 11 Dec 2024 13:15:54 +1100 Subject: [PATCH] There are cases where you want the delimiter to be a space I figure that if the user is just passing in a single " " then that would match that case. However it don't handle the case of multiple `" "` being intentional -- I'm not sure how you would want to handle this. Perhaps, if the change should be on 173? --- stringy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stringy.go b/stringy.go index bfcad0d..4e22c76 100644 --- a/stringy.go +++ b/stringy.go @@ -169,7 +169,7 @@ func (i *input) ContainsAll(check ...string) bool { // by default and you dont have to worry about it. func (i *input) Delimited(delimiter string, rule ...string) StringManipulation { input := getInput(*i) - if strings.TrimSpace(delimiter) == "" { + if strings.TrimSpace(delimiter) == "" && delimiter != " " { delimiter = "." } wordArray := caseHelper(input, false, rule...)