Skip to content

Commit

Permalink
fix: rola challenge validation case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidsowardx committed Sep 17, 2024
1 parent 2f6e51b commit dfaacac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ describe('validateRolaChallenge', () => {
'3f30f8d67ca69af8b646170d6ddd0a16cb501dcb7d457d0b49ef78a5d1b4beac',
'0a6a5b8beac0e56b8613f1b1a08223b3986aa28b9acc81d16493c75a428f436e',
'2455077b5bb93e1d5c9816513c3385b88293d91b9d44ed6bd652764834eb997a',
'2455077b5BB93e1d5c9816513c3385b88293d91b9d44ed6BD652764834eb997a',
]

const invalidTestVectors = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const validateRolaChallenge = (challenge?: unknown) =>
typeof challenge === 'string' && /^[0-9a-f]{64}$/.test(challenge);
typeof challenge === 'string' && /^[0-9a-f]{64}$/i.test(challenge);

0 comments on commit dfaacac

Please sign in to comment.