Skip to content

Commit c2607e9

Browse files
committed
Fixed searching licenses for lettercases
Signed-off-by: Omkar Phansopkar <omkarphansopkar@gmail.com>
1 parent 872e107 commit c2607e9

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

src/pages/Licenses/Licenses.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,10 @@ const LicenseDetections = () => {
225225
activeLicense &&
226226
activeLicense.type === "detection" &&
227227
activeLicense.license === licenseDetection;
228-
const showDetection =
229-
licenseDetection.license_expression.includes(
230-
searchedLicense
231-
);
228+
const showDetection = licenseDetection.license_expression
229+
.toLowerCase()
230+
.includes(searchedLicense.toLowerCase());
231+
232232
return (
233233
<ListGroupItem
234234
onClick={() => activateLicenseDetection(licenseDetection)}
@@ -276,8 +276,10 @@ const LicenseDetections = () => {
276276
activeLicense &&
277277
activeLicense.type === "clue" &&
278278
activeLicense.license === licenseClue;
279-
const showClue =
280-
licenseClue.license_expression.includes(searchedLicense);
279+
const showClue = licenseClue.license_expression
280+
.toLowerCase()
281+
.includes(searchedLicense.toLowerCase());
282+
281283
return (
282284
<ListGroupItem
283285
onClick={() => activateLicenseClue(licenseClue)}

0 commit comments

Comments
 (0)