Fix broken `setMod` method
Merge pull request #369 from mdidkivskyi/fix-mod-val-regexp

Fix broken `setMod` method