Updated regex in Memory Debugger to exclude replacing space with '?'

pull/7/head
Eswara Sai 6 years ago
parent db77e93089
commit 66ebe01e3f
No known key found for this signature in database
GPG Key ID: 65239C6436A828E8
  1. 1
      .gitignore
  2. 2
      remix-lib/src/helpers/uiHelper.js

1
.gitignore vendored

@ -2,6 +2,7 @@ build
node_modules
npm-debug.log
lint.xml
.idea
.vscode
test-browser/reports/*
babelify-src

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

Loading…
Cancel
Save