Commit 5ed7dfad authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix issue #118: $@ flat out disappears from message box

parent 9a1bc808
......@@ -35,6 +35,7 @@ function close_save_dialog() {
function text_to_fudi(text) {
text = text.trim();
text = text.replace(/(\$[0-9]+)/g, "\\$1"); // escape dollar signs
text = text.replace(/(\$@)/g, "\\$@"); // escape special $@ sign
text = text.replace(/(?!\\)(,|;)/g, " \\$1 "); // escape "," and ";"
text = text.replace(/\{|\}/g, ""); // filter "{" and "}"
text = text.replace(/\s+/g, " "); // filter consecutive /s
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment