hasMatch has diferrent semantics between QRegeyp and QRegularExpression. We want the old exactMatch behavior matching on the entirety of the string.
BUG: 478397
That was a regression from 1c42b338