diff --git a/Project.toml b/Project.toml index c66113fb..24fb0cef 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "Quiqbox" uuid = "7cb8c394-fae1-4ab9-92f2-30189d7746cd" -version = "0.5.6" +version = "0.5.7" [deps] Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa" diff --git a/src/FileIO.jl b/src/FileIO.jl index 7bf8383d..0b9e3b26 100644 --- a/src/FileIO.jl +++ b/src/FileIO.jl @@ -223,7 +223,11 @@ function cropStrR(str::String, maxLen::Int) if maxLen > strLen rpad(str, maxLen) else - str[begin:maxLen] + i = 0 + mapreduce(*, 1:maxLen) do _ + i = nextind(str, i) + str[i] + end end end