7fc28b38e1543fdce9e41392c3c667eba6903028
str.rfind returns -1 when a string separator is not present in the truncated text. Using that -1 as a slice end dropped an extra trailing character before appending the omission. Only adjust the truncation point when the separator is actually found, matching the regex-separator branch and lodash behaviour.
Description
My contributions to dgilland/pydash: 4 commits, 1 merged PRs
158 KiB
0 Stars
1 Watchers
0 Forks
Languages
Python
100%