fix(lexer): make regex case insensitive
fix(api): removed dead code