Add support to exclude range

[ fix #3155 ]
Merge pull request #3156 from dlibanori/issue-#3155
update changelog