Some sites, like this repo's home page show a deal for Ting. This occurs because the page title has the word visiting. Our tab title matching algorithm sees it has the word ting in it, therefore displaying the Ting deal.
As a temporary fix, we should just match whole words. So Ting should only match to titles that have ting as a whole world, surrounded by spaces. If at the beginning or end of the title, only one side needs to have a space.
Note: #71 does not account for the case where the word shows up at the end of the title. There are currently no use cases for this specific edge-case yet.
Some sites, like this repo's home page show a deal for
Ting
. This occurs because the page title has the wordvisiting
. Our tab title matching algorithm sees it has the wordting
in it, therefore displaying the Ting deal.As a temporary fix, we should just match whole words. So
Ting
should only match to titles that haveting
as a whole world, surrounded by spaces. If at the beginning or end of the title, only one side needs to have a space.