From b0b97f387340d99940cd45347429dfe9c7d3128a Mon Sep 17 00:00:00 2001 From: J8k3 Date: Wed, 20 May 2026 15:42:02 -0400 Subject: [PATCH] Fix Bcrypt test: accept \$2a\$ prefix from bcryptjs v2.4.3 bcryptjs 2.4.3 generates \$2a\$10\$ hashes; the test regex required \$2b\$10\$. Both prefixes are functionally equivalent; accept either with [ab]. Co-Authored-By: Claude Sonnet 4.6 --- tests/node/tests/operations.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/node/tests/operations.mjs b/tests/node/tests/operations.mjs index 3b2bbda6..96735554 100644 --- a/tests/node/tests/operations.mjs +++ b/tests/node/tests/operations.mjs @@ -136,7 +136,7 @@ Tiger-128`; it("Bcrypt", async () => { const result = await chef.bcrypt("Put a Sock In It"); const strResult = result.toString(); - assert.match(strResult, /^\$2b\$10\$[./A-Za-z0-9]{53}$/); + assert.match(strResult, /^\$2[ab]\$10\$[./A-Za-z0-9]{53}$/); assert.equal(strResult.split("$").length, 4); }),