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
...@@ -894,7 +894,7 @@ ...@@ -894,7 +894,7 @@
t._updateUndoRedoChanged(); t._updateUndoRedoChanged();
}, },
_fireUpdated: function () { _fireUpdated: function () {
var t = this; var t = this;
var s = t._getFragmentsText(t.options.fragments); var s = t._getFragmentsText(t.options.fragments);
var isFormula = s.charAt(0) === "="; var isFormula = s.charAt(0) === "=";
...@@ -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