Skip to content

Commit

Permalink
Search fix for long lens ID's
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrumpis committed Mar 3, 2023
1 parent afe90fe commit f09ae25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ async function advancedSearch(searchTerm) {
return await DB.searchLensByUuid(uuid);
}

// lens ID's have 11 digits but we support +/- 1
const regLensId = /^[0-9]{10,12}$/gi;
// lens ID's have 11 to 16 digits
const regLensId = /^[0-9]{11,16}$/gi;
if (regLensId.test(searchTerm)) {
return await DB.getSingleLens(searchTerm);
}
Expand Down

0 comments on commit f09ae25

Please sign in to comment.