stred

Stred: Streaming Tree Editor. Like sed but for JSON
git clone http://shtanton.xyz/git/repo/stred
Log | Files | Refs

commit 2c59bb2a76284bd37d4df40ab2966d233c742977
parent ffd1b73b4f3294d9f3aa2ed600da3ba053aeb47c
Author: Charlie Stanton <charlie@shtanton.xyz>
Date:   Tue, 18 Apr 2023 16:00:21 +0100

Fixes bug where stores wouldn't work inside other stores sometimes

Something like $a($b(test)..."$b") wouldn't work as expected, this works now

Diffstat:
Msubex/subexstate.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/subex/subexstate.go b/subex/subexstate.go @@ -48,7 +48,7 @@ func (state SubexStoreState) eat(store Store, char walk.Atom) (nextStates []Sube toStore: walk.ConcatData(state.toStore, matchState.output), }, output: nil, - store: store.clone(), + store: matchState.store, }) } return nextStates