Correct pattern matching.

Instead of 10 digits, it should limit at 10 groups.

Refs 1988e89e7382ba830c0172f399887595714c5b18