From 804471b827365811abb134c798cb7a38d5d486f2 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Thu, 4 Dec 2014 14:27:04 +0200 Subject: 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 :/ --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.js') 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 } -- cgit v1.3.1