nodpc / jn-npp-plugin

Automatically exported from code.google.com/p/jn-npp-plugin
0 stars 0 forks source link

Problem with string settings containing backslash #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When you store string settings with GlobalSettings.set() if it contains 
backslashes then it get altered when you get it back and if it has a trailing 
backslash then you get one or more error message : 

name=SyntaxError
message='}' attendu
number=-2146827279
description='}' attendu

It can be solved with a small update in start.js but I am unsure it does not 
have consequences elsewhere.

In function Settings()
add
   var reg2 = /\\/g; 
and replace
   str.replace(reg, '\\"')
by 
   str.replace(reg2, '\\\\').replace(reg, '\\"')  

Original issue reported on code.google.com by pp140...@gmail.com on 18 Apr 2013 at 6:04

GoogleCodeExporter commented 9 years ago
I'll handle this one.

Original comment by eugen.kr...@gmail.com on 30 Apr 2013 at 8:21

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r75.

Original comment by eugen.kr...@gmail.com on 1 May 2013 at 8:42