HomePhabricator

[token-server] Patch bug in token validation function

Description

[token-server] Patch bug in token validation function

Summary:
Need anchors in regex for length to be properly checked.

Patch, and patch the test vectors that "tested" this with the wrong values.

Test Plan: npm test

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Differential Revision: https://reviews.bitcoinabc.org/D17050

Details

Provenance
bytesofmanAuthored on Oct 31 2024, 10:33
bytesofmanPushed on Oct 31 2024, 12:50
Reviewer
Restricted Project
Differential Revision
D17050: [token-server] Patch bug in token validation function
Parents
rABC54b031295447: [Cashtab] Update bad tokenId validation function
Branches
Unknown
Tags
Unknown