Add better unicode character class to regex in git function