From 64a17d113aa136cf29f74a9c3c88a42584c605da Mon Sep 17 00:00:00 2001 From: Eswara Sai Date: Tue, 12 Feb 2019 06:39:42 +0530 Subject: [PATCH] Updated regex in Memory Debugger to exclude replacing space with '?' --- .gitignore | 1 + remix-lib/src/helpers/uiHelper.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2f9b6cc3d7..39c46509bd 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ build node_modules npm-debug.log lint.xml +.idea .vscode test-browser/reports/* babelify-src diff --git a/remix-lib/src/helpers/uiHelper.js b/remix-lib/src/helpers/uiHelper.js index 99dfeb5970..9ee89e0b1e 100644 --- a/remix-lib/src/helpers/uiHelper.js +++ b/remix-lib/src/helpers/uiHelper.js @@ -23,7 +23,7 @@ module.exports = { for (var k = 0; k < memorySlot.length; k += 2) { var raw = memorySlot.substr(k, 2) var ascii = String.fromCharCode(parseInt(raw, 16)) - ascii = ascii.replace(/\W/g, '?') + ascii = ascii.replace(/[^\w\s]/, '?') if (ascii === '') { ascii = '?' }