reedline
reedline copied to clipboard
Attempt at fixing find_common_string
This PR attempts to fix issue #539
Description
I suspect it may have to do with the way map works, so I've done the check differently. But I'm new with Rust so there's probably a better option.
I've also updated the test case so that it shows the issue that it previously didn't.
To-Do
After seeing reviews for this PR I may also check the test function for non_ansi characters.