summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/common.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/common.js b/js/common.js
index 560f63d..92dc74b 100644
--- a/js/common.js
+++ b/js/common.js
@@ -38,7 +38,7 @@ function toggleDisplay(id)
*/
function trim(s)
{
- return s.replace(/^\s+|\s+$/g, '');
+ return s.replace(/(\||\n|\t)/g, " ").replace(/^\s+|\s+$/g, '').replace(/\s+/g, " ");
}
/*