Allow quotes in a register call (#4793)

This commit is contained in:
JT 2022-03-09 07:06:44 -05:00 committed by GitHub
parent e0fac7bc72
commit 925e9f4dcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1703,6 +1703,8 @@ pub fn parse_register(
.get(0)
.map(|expr| {
let name_expr = working_set.get_span_contents(expr.span);
let name_expr = trim_quotes(name_expr);
String::from_utf8(name_expr.to_vec())
.map_err(|_| ParseError::NonUtf8(expr.span))
.and_then(move |name| {