File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 2525 Puck.js: E.getTemperature(true) will now use the uC's internal temp sensor (previously only external was possible)
2626 Add fast path to xIntArray.indexOf
2727 Add median-of-3 for Array.sort (1/3 of the compares for pre-sorted data)
28+ Fix escape characters in strings inside templates inside templated strings `${"\n"}`
2829
2930 2v27 : nRF5x: Ensure Bluetooth notifications work correctly when two separate connections use the same handle for their characteristics
3031 nRF5x: Remove handlers from our handlers array when a device is disconnected
Original file line number Diff line number Diff line change @@ -352,7 +352,8 @@ static void jslLexString() {
352352 tempatedStringHasTemplate = true;
353353 } else if (nesting && lex -> currCh == '}' ) nesting -- ;
354354 }
355- if (lex -> currCh == '\\' ) {
355+ if (nesting == 0 && lex -> currCh == '\\' ) {
356+ // only handle escaped characters in the outer template string
356357 jslGetNextCh ();
357358 char ch = lex -> currCh ;
358359 switch (lex -> currCh ) {
You can’t perform that action at this time.
0 commit comments