Unverified Commit e86f23a2 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #1124 from eswarasai/master

Updated regex in Memory Debugger to exclude replacing space with '?'
parents a2186425 66ebe01e
...@@ -2,6 +2,7 @@ build ...@@ -2,6 +2,7 @@ build
node_modules node_modules
npm-debug.log npm-debug.log
lint.xml lint.xml
.idea
.vscode .vscode
test-browser/reports/* test-browser/reports/*
babelify-src babelify-src
......
...@@ -23,7 +23,7 @@ module.exports = { ...@@ -23,7 +23,7 @@ module.exports = {
for (var k = 0; k < memorySlot.length; k += 2) { for (var k = 0; k < memorySlot.length; k += 2) {
var raw = memorySlot.substr(k, 2) var raw = memorySlot.substr(k, 2)
var ascii = String.fromCharCode(parseInt(raw, 16)) var ascii = String.fromCharCode(parseInt(raw, 16))
ascii = ascii.replace(/\W/g, '?') ascii = ascii.replace(/[^\w\s]/, '?')
if (ascii === '') { if (ascii === '') {
ascii = '?' ascii = '?'
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment