diff --git a/lib/src/fnc/string.rs b/lib/src/fnc/string.rs index 67b5c831..7080c2c3 100644 --- a/lib/src/fnc/string.rs +++ b/lib/src/fnc/string.rs @@ -81,5 +81,5 @@ pub fn uppercase(_: &Context, mut args: Vec) -> Result { } pub fn words(_: &Context, mut args: Vec) -> Result { - Ok(args.remove(0).as_string().split(' ').collect::>().into()) + Ok(args.remove(0).as_string().split_whitespace().collect::>().into()) }