Regex char ou char

//check if have "i" or "o"
/i|o/.test(var)
GutoTrosla