diff --git a/src/util.jl b/src/util.jl index def7c27..3dabd31 100644 --- a/src/util.jl +++ b/src/util.jl @@ -308,7 +308,8 @@ function textToDict(text::String, detectKeywords::Vector{String}; dictKey_ = reverse(dictKey) # process text from back to front - for (i,keyword) in enumerate(reverse(kw)) + rkw = reverse(kw) + for (i,keyword) in enumerate(rkw) # Find the position of the keyword in the text keywordidx = findlast(keyword, remainingtext) dKey = dictKey_[i]