Wikimedia extension: Change git regex from {40} to {8,40}

Like we already do for Gerrit Change-Id a few lines higher in this file,
and like we already do in the git-hash regex in Gerrit itself.

Change-Id: I9dd074189cbfcc1b76522c8aa72a2212aa5fd702