summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-12-04 14:27:04 +0200
committerAlon Levy <alon@pobox.com>2014-12-04 14:27:04 +0200
commit804471b827365811abb134c798cb7a38d5d486f2 (patch)
tree1c17fcaeba17d9efbf1d1fe0ded5a49cfe0ca5d2 /src
parent8227fdd4239cf3393c3728350c266673749d6b44 (diff)
Related to #68 - space as or
Note that since search is a regexp, you could always (and still) do: a|b But what you can't do now is have spaces in the name :/
Diffstat (limited to 'src')
-rw-r--r--src/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.js b/src/main.js
index 70455c2b..fd45a76d 100644
--- a/src/main.js
+++ b/src/main.js
@@ -41,7 +41,7 @@ function(textanalysis_ui, textanalysis, buttons, history, drag_n_drop,
r;
try {
- r = new RegExp(text, 'i');
+ r = new RegExp(text.replace(/ /, '|'), 'i');
} catch (e) {
return; // don't clear selection either
}