mapping: make the regexp check the length of the hash
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>