Skip to content

Commit

Permalink
fix: add support for stores label text to have uppercase letters (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
farsabbutt committed Oct 19, 2020
1 parent 542b923 commit 5ea7cc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/includes-labels.ts
Expand Up @@ -86,7 +86,7 @@ export async function extractPageContents(page: Page, selector: Selector): Promi
*/
export function includesLabels(domText: string, searchLabels: string[]): boolean {
const domTextLowerCase = domText.toLowerCase();
return searchLabels.some(label => domTextLowerCase.includes(label));
return searchLabels.some(label => domTextLowerCase.includes(label.toLowerCase()));
}

export async function cardPrice(page: Page, query: Pricing, max: number, options: Selector) {
Expand Down

0 comments on commit 5ea7cc4

Please sign in to comment.