fresc81 / node-winreg

node module that provides access to the Windows Registry through the REG commandline tool
211 stars 60 forks source link

Calling .get for a key with a space (" ") as its value returns null as the result #59

Open dominic-simplan opened 1 year ago

dominic-simplan commented 1 year ago

Prerequisite: A key exists in the registry with value " " (space).

Actual behaviour: result in callback is null:

regKey.get(key, (error, result) => {
 // result is null
})

Expected behaviour: result.value in callback is " ".