Talk:S-expressions: Difference between revisions
Content added Content deleted
(JavaScript, bugfix for \" and \n in strings) |
(→JavaScript version bugfix for \" and \n in strings: added example) |
||
Line 254: | Line 254: | ||
== JavaScript version bugfix for \" and \n in strings == |
== JavaScript version bugfix for \" and \n in strings == |
||
I found that the present solution doesn't treat escaped double quotes and newlines in strings right (used in KiCad) |
I found that the present solution doesn't treat escaped double quotes and newlines in strings right (used in KiCad) |
||
⚫ | |||
(property "ki_description" "Power symbol creates a global label with name \"GND\" ,\nexample new line") |
|||
⚫ | |||
String.prototype.parseSexpr = function () { |
String.prototype.parseSexpr = function () { |
||
//schweick: modified first option in regexp to catch string containing \" |
//schweick: modified first option in regexp to catch string containing \" |