Adjust regex to ignore ci and ce
Add a test case for the fix

This commit fixes #18