Fixes #4 by using the i flag in the relevant RegExp