mirror of
https://github.com/nushell/nushell
synced 2025-01-13 21:55:07 +00:00
Allow quotes in a register
call (#4793)
This commit is contained in:
parent
e0fac7bc72
commit
925e9f4dcb
1 changed files with 2 additions and 0 deletions
|
@ -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| {
|
||||
|
|
Loading…
Reference in a new issue