fix(browse): update sed pattern to work on mac by bethesque · Pull Request #854 · tj/git-extras

The \w character class on Mac's version of sed (BSD) does not seem to be recognised as "all word characters".

echo "foo" | sed -E -e 's/\w*/_/'
_foo

I had to update my pattern to .* to get it to work correctly. I understand it's not as precise, but I couldn't find a character class that was acknowledged to work the same across all platforms.