1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-07-31 14:17:45 +00:00

Upgrade range syntax (#953)

Co-authored-by: nash <nash@iffy.me>
This commit is contained in:
fj0r 2024-09-17 23:51:37 +08:00 committed by GitHub
parent 71d2eaf516
commit 874918fdd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -85,7 +85,7 @@ export def parse [] {
for c in $token {
if ($sw | is-empty) {
if ($c | str starts-with '-') {
let c = if ($c | str substring 1..2) != '-' {
let c = if ($c | str substring 1..<2) != '-' {
let k = ($c | str substring 1..)
if $k in $sign.name {
$'($sign.name | get $k)'