This commit is contained in:
ConnorSkees 2020-03-23 23:06:05 -04:00
parent 2705d79d1a
commit d88342fd9b

View File

@ -114,7 +114,14 @@ pub(crate) fn register(f: &mut HashMap<String, Builtin>) {
if start > end || start > str_len {
Ok(Value::Ident(String::new(), quotes.normalize()))
} else {
Ok(Value::Ident(string.chars().skip(start - 1).take(end - start + 1).collect(), quotes.normalize()))
Ok(Value::Ident(
string
.chars()
.skip(start - 1)
.take(end - start + 1)
.collect(),
quotes.normalize(),
))
}
}),
);