From 4bd7a5d542b59aab305869c40a65dd7e1cddfa4f Mon Sep 17 00:00:00 2001 From: Gregor Kappler Date: Tue, 4 Aug 2020 17:49:42 +0200 Subject: [PATCH] get(::PositiveLookbehind) fixed --- src/get.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/get.jl b/src/get.jl index c2fa838..39daf2a 100644 --- a/src/get.jl +++ b/src/get.jl @@ -52,10 +52,10 @@ function Base.get(t::PositiveLookbehind, str, till, after, i, state) rseq = revert(str) + i_ = reverse_index(rseq,prevind(rseq,i)) + after_ = nextind(rseq,i_,t.parser,state) get(t.parser, rseq, till, - after, - reverse_index(rseq,prevind(rseq,i)), - state) + after_, i_, state) end