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

fix #114: can't copy-paste ASCII character 160, non-breaking space. Now we...

fix #114: can't copy-paste ASCII character 160, non-breaking space. Now we only remove consecutive \u0020, and leave the non-breaking spaces alone
parent c39b138e
......@@ -38,7 +38,7 @@ function text_to_fudi(text) {
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
text = text.replace(/\u0020+/g, " "); // filter consecutive ascii32
return text;
}
......
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