From 71cf6f581323682a46720cb54b4969d38346d076 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sat, 21 Oct 2023 16:12:34 +0100 Subject: [PATCH] refactor(signer): add `u` unicode flag to regex (#256) --- 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)) {