mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
fix interpolated strings when using unicode (#3866)
* fix interpolated strings when using unicode * added test case
This commit is contained in:
@ -650,7 +650,7 @@ fn parse_interpolated_string(
|
||||
scope: &dyn ParserScope,
|
||||
) -> (SpannedExpression, Option<ParseError>) {
|
||||
trace!("Parse_interpolated_string");
|
||||
let string_len = lite_arg.item.len();
|
||||
let string_len = lite_arg.item.chars().count();
|
||||
let inner_string = lite_arg
|
||||
.item
|
||||
.chars()
|
||||
|
Reference in New Issue
Block a user