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 = '?' }