Ensure string::words SQL function handles multiple spaces correctly (#72)
This commit is contained in:
parent
f8535b0546
commit
42d8260966
1 changed files with 1 additions and 1 deletions
|
@ -81,5 +81,5 @@ pub fn uppercase(_: &Context, mut args: Vec<Value>) -> Result<Value, Error> {
|
|||
}
|
||||
|
||||
pub fn words(_: &Context, mut args: Vec<Value>) -> Result<Value, Error> {
|
||||
Ok(args.remove(0).as_string().split(' ').collect::<Vec<&str>>().into())
|
||||
Ok(args.remove(0).as_string().split_whitespace().collect::<Vec<&str>>().into())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue