Remove redundant code
Merge pull request #8 from AdamBInfinity/master

Remove redundant `g` flag in regex