Fixes #1739 - regression from a93af4060369f23299652b92fdc451468a3e5534 which matches files too widely. Signed CLA.
#1739 - Add explicit test
Merge pull request #1742 from CloCkWeRX/fix_duplicate_regex

Fix duplicate check regex