That's right, isn't it?  If we match all relevant digits of one or the other, we have a match for that many digits.