Fix patterns for mobile (allows 7 as fisrt number)
Merge pull request #5988