Update index.js

Function snap uses individual rules instead of reg exp, ignore case should be there too.