Use glob instead of regex for dir matching (#328)
Use glob instead of regex for dir matching (#328)

Sometimes directory names might contain characters that cause an invalid
regex, for example, cd:ing into the directory "test[" would result in
the following error:

prompt_pure_async_callback:21: failed to compile regex: brackets ([ ]) not balanced

We avoid this problem by using globbing instead of regex when checking
if the path matches.
supercrabtree/pure,jaredru/zsh-pure,joshuarubin/dotfiles,sindresorhus/pure,joshuarubin/dotfiles,joshuarubin/dotfiles,joshuarubin/dotfiles,kgrz/pure,forivall/pure,mafredri/pure