From e9eeeacdf0758cb38cbdbae5176a2aa3e12ceee7 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Thu, 19 Sep 2019 20:48:05 +0200 Subject: [PATCH] addressing jsverifyRngState 0f5ea3f961827b0c4d --- js/test/Helper.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/test/Helper.js b/js/test/Helper.js index eac22fa1..3002d2a4 100644 --- a/js/test/Helper.js +++ b/js/test/Helper.js @@ -183,9 +183,9 @@ describe('Helper', function () { 'string', 'string', function (prefix, uint, middle, string, postfix) { - prefix = prefix.replace(/%(s|d)/g, '%%'); - middle = middle.replace(/%(s|d)/g, '%%'); - postfix = postfix.replace(/%(s|d)/g, '%%'); + prefix = prefix.replace(/%(s|d)/g, ''); + middle = middle.replace(/%(s|d)/g, ''); + postfix = postfix.replace(/%(s|d)/g, ''); var params = [prefix + '%d' + middle + '%s' + postfix, uint, string], result = prefix + uint + middle + string + postfix; return result === $.PrivateBin.Helper.sprintf.apply(this, params); @@ -199,9 +199,9 @@ describe('Helper', function () { 'string', 'string', function (prefix, uint, middle, string, postfix) { - prefix = prefix.replace(/%(s|d)/g, '%%'); - middle = middle.replace(/%(s|d)/g, '%%'); - postfix = postfix.replace(/%(s|d)/g, '%%'); + prefix = prefix.replace(/%(s|d)/g, ''); + middle = middle.replace(/%(s|d)/g, ''); + postfix = postfix.replace(/%(s|d)/g, ''); var params = [prefix + '%s' + middle + '%d' + postfix, string, uint], result = prefix + string + middle + uint + postfix; return result === $.PrivateBin.Helper.sprintf.apply(this, params);