Thanks for bringin this up. After some investigation I found it is caused by the following function defined in dnn.js
escapeForEval: function(s) //needs work...
{
return s.replace(/\'/g, "\\'").replace(/\\/g, '\\\\').replace(/\r/g, '').replace(/\n/g, '\\n').replace(/\./, '\\.');
},
Try changing it to
escapeForEval: function(s) //needs work...
{
return s.replace(/\\/g, '\\\\').replace(/\'/g, "\\'").replace(/\r/g, '').replace(/\n/g, '\\n').replace(/\./, '\\.');
},
The order of replacement of characters is the issue here. I need to replace out the \ before I substitute out the '.
If anyone knows regular expressions and wishes to rewrite this rather messy statement feel free to post a better solution.
Note: A ticket has been opened for this.