Ignore whitespace when attempting to recommend an alias
Closed this issue · 1 comments
codyduong commented
Sometimes if you are using something like
gst #<-- empty whitespace
it will suggest
gst
despite these being basically the same.
codyduong commented
This is relatively trivial with a $String.trim()
, and in fact the patch is already done, but consider the case like so
g stash --keep-untracked
where the whitespace is in the middle. Maybe just replace all whitespace greater than 1 with simply 1 whitespace?