From 42d8260966c7dadbfacfc8e2a61677844d780657 Mon Sep 17 00:00:00 2001 From: Finn Bear Date: Sun, 28 Aug 2022 18:46:15 -0700 Subject: [PATCH] Ensure string::words SQL function handles multiple spaces correctly (#72) --- lib/src/fnc/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) }