Fix regex flag bug
Merge pull request #5 from dpsxp/hotfix/flags

Fix regex flag bug