From 1019daa5ca6865b2d24149d72234b6cf5d0c0782 Mon Sep 17 00:00:00 2001 From: Ted Pavlic Date: Fri, 16 Jan 2009 13:34:05 -0500 Subject: [PATCH] Change (\S+) to (\w+) in abbreviation matching so that "VIMP expands (to match Vim behavior). --- common/content/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/editor.js b/common/content/editor.js index 2b2bbd3f..a7957355 100644 --- a/common/content/editor.js +++ b/common/content/editor.js @@ -1010,7 +1010,7 @@ function Editor() //{{{ let text = textbox.value; let currStart = textbox.selectionStart; let currEnd = textbox.selectionEnd; - let foundWord = text.substring(0, currStart).replace(/^(.|\n)*?(\S+)$/m, "$2"); // get last word \b word boundary + let foundWord = text.substring(0, currStart).replace(/^(.|\n)*?(\w+)$/m, "$2"); // get last word \b word boundary if (!foundWord) return true;