Commit e58651e4 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@48349 954022d7-b5bf-4e40-9824-e11837661b57
parent d7bd961c
......@@ -162,6 +162,9 @@
rangeChars: "= - + * / ( { , < > ^ ! & : ;".split(' '),
reNotFormula: /[^a-z0-9_]/i,
reFormula: /^([a-z_][a-z0-9_]*)/i,
init: function () {
var t = this;
......@@ -905,9 +908,9 @@
}
if (isFormula) {
funcPos = asc_lastidx(s, /[^a-z0-9_]/i, t.cursorPos) + 1;
funcPos = asc_lastidx(s, t.reNotFormula, t.cursorPos) + 1;
if (funcPos > 0) {
match = s.slice(funcPos).match( /^([a-z_][a-z0-9_]*)/i);
match = s.slice(funcPos).match( t.reFormula );
}
if (match) {
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