Commit f18660bc authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov Committed by Alexander.Trofimov

для подсказки названия формул

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48330 954022d7-b5bf-4e40-9824-e11837661b57
parent 987908ca
...@@ -905,9 +905,9 @@ ...@@ -905,9 +905,9 @@
} }
if (isFormula) { if (isFormula) {
funcPos = asc_lastidx(s, t.reNotFormula, t.cursorPos) + 1; funcPos = asc_lastidx(s, /[^a-z0-9_]/i, t.cursorPos) + 1;
if (funcPos > 0) { if (funcPos > 0) {
match = s.slice(funcPos).match(t.reFormula); match = s.slice(funcPos).match( /^([a-z_][a-z0-9_]*)/i);
} }
if (match) { if (match) {
funcName = match[1]; funcName = match[1];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment