Fixed 'unexpected end of pattern'

Fixed 'unexpected end of pattern'
Merge pull request #7 from 013/patch-2

Fixed 'unexpected end of pattern'