Merge partially duplicate patterns
Merge pull request #430 from Dmitry-Me/mergeDuplicatePatterns

Merge partially duplicate patterns