update the regular expression pattern for git commit id to only
pick up the one starts from a space and ends with a space or ].