Skip to content
This repository was archived by the owner on Oct 19, 2019. It is now read-only.

Commit a12e17c

Browse files
committed
ScrapperList.getByName is now case insensitive
1 parent e02299d commit a12e17c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ScrapperList.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export class ScrapperList extends Array<Scrapper> {
1818
return this.find((s) => s.isApplicable(url));
1919
}
2020
public getByName(name: string): Scrapper | undefined {
21-
return this.find((s) => s.name === name);
21+
name = name.toLowerCase();
22+
return this.find((s) => s.name.toLowerCase() === name);
2223
}
2324
}

0 commit comments

Comments
 (0)