From 7c9b7f128203919814fddf6282516742f7d7d4be Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sat, 21 Oct 2023 15:48:54 +0100 Subject: [PATCH] refactor(signer): add `u` unicode flag to regex --- signer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signer.js b/signer.js index a19ceb0..3d017e8 100644 --- a/signer.js +++ b/signer.js @@ -8,7 +8,7 @@ const crypto = require('node:crypto') -const base64PaddingRE = /=/g +const base64PaddingRE = /=/gu function Signer (secrets, algorithm = 'sha256') { if (!(this instanceof Signer)) {