Perform matching validation also on paste
Merge pull request #1870 from Guite/1.4

Perform matching validation also on paste