Here Apple, fixed for ya: -if (product.name.match(/iPhone/i)) { +if (product.name.match(/\\biPhone\\b/i)) { sendAttorneysRequestFor(product); }