You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but for live mode, this fails with ERROR - expected token ')'
a = "a'b"
echo `a`
dump `a` to efg.txt
This is because a variable containing single quote, when formed into JavaScript expression as a string, will break the JS syntax. The solution is probably do some escaping of characters in the variable at the point of expanding. Found this edge case while working on #901, when OCR read characters has some weird character and trigger unexpected EOF error.
The text was updated successfully, but these errors were encountered:
kensoh
changed the title
Using steps like echo, dump, write with variables that has ' - to check
Using steps like echo, dump, write with variables that has single quote ' - to check
Jan 4, 2021
kensoh
changed the title
Using steps like echo, dump, write with variables that has single quote ' - to check
Live mode using steps like echo, dump, write with variables that has ' - to check
Jan 4, 2021
kensoh
changed the title
Live mode using steps like echo, dump, write with variables that has ' - to check
Live mode using steps like echo, dump, write with variables that has ' - fixed
Jan 4, 2021
this works in normal and live mode
but for live mode, this fails with
ERROR - expected token ')'
This is because a variable containing single quote, when formed into JavaScript expression as a string, will break the JS syntax. The solution is probably do some escaping of characters in the variable at the point of expanding. Found this edge case while working on #901, when OCR read characters has some weird character and trigger unexpected EOF error.
The text was updated successfully, but these errors were encountered: