replace whitespace characters in text also #7
I'll take a stab.
What I'm seeing is the text that gets passed in the #hash has a non-breaking space character in between the last two words, which matches the markup.
(element.innerText || element.textContent || '').replace(/\s+/g, ' ').indexOf(text)
Run the same
(You might also be able to lose the replace in both places, but I imagine it's there for a reason.)