summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.js b/src/main.js
index e3c5599f..1d27eda3 100644
--- a/src/main.js
+++ b/src/main.js
@@ -37,8 +37,8 @@ function(textanalysis_ui, textanalysis, buttons, history, drag_n_drop,
};
// TODO: move me somewhere
$('#search').on('input', function(e) {
- var text = this.value,
- r = new RegExp(text.trim()); // TODO fails for quotes
+ var text = this.value.trim(),
+ r = new RegExp(text); // TODO fails for quotes
if (text.length > 0) {
selection.byVisitors(function (n) { return n.name.match(r); });
} else {