Merge pull request #286 from hlim/master

CRAFTERCMS-894: added pattern to input control