summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/editor.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/editor.js')
-rw-r--r--app/assets/javascripts/editor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/editor.js b/app/assets/javascripts/editor.js
index c977571..4f4de5d 100644
--- a/app/assets/javascripts/editor.js
+++ b/app/assets/javascripts/editor.js
@@ -92,7 +92,7 @@ $(function() {
// match up to 2 words (everything except some special characters)
// each word can have up to 16 characters (up to 32 total)
// words must be separated by a single space
- match: /(^|\s)(([^!"§$%&\/()=?.,;+*@\s]{1,16} ?){0,1}[^!"§$%&\/()=?.,;+*@\s]{1,16})$/,
+ match: /(^|\s)([^!"§$%&\/()=?.,;+*@\s]{1,16})$/,
search: function (text, callback, match) {
console.log("Searching " + text);
text = text.toLowerCase();