1
0
mirror of https://github.com/nushell/nushell.git synced 2025-07-15 13:55:26 +02:00

fix: unicode byte counting error ()

Co-authored-by: hk <alexhaka10@protonmail.com>
This commit is contained in:
ahkrr
2021-03-11 19:11:07 +01:00
committed by GitHub
parent 0d305d7c3e
commit 86a89404be

@ -388,7 +388,7 @@ fn parse_invocation(
.item .item
.chars() .chars()
.skip(2) .skip(2)
.take(lite_arg.item.len() - 3) .take(lite_arg.item.chars().count() - 3)
.collect(); .collect();
// We haven't done much with the inner string, so let's go ahead and work with it // We haven't done much with the inner string, so let's go ahead and work with it