summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-12-04 01:32:56 +0200
committerAlon Levy <alon@pobox.com>2014-12-04 01:32:56 +0200
commit91830a156530d7655720ec0712ceca0d252edb78 (patch)
tree89eeb4bbc927c214643f155bf3e1c544833cce33 /src
parent24f0ac26c10b36a34ce2c4080ec1ca53e7a6981b (diff)
Fixes #174: case insensitive search
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 b20b0ee1..70455c2b 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); // TODO fails for quotes
+ r = new RegExp(text, 'i');
} catch (e) {
return; // don't clear selection either
}