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 @@ ...@@ -162,6 +162,9 @@
rangeChars: "= - + * / ( { , < > ^ ! & : ;".split(' '), rangeChars: "= - + * / ( { , < > ^ ! & : ;".split(' '),
reNotFormula: /[^a-z0-9_]/i,
reFormula: /^([a-z_][a-z0-9_]*)/i,
init: function () { init: function () {
var t = this; var t = this;
...@@ -905,9 +908,9 @@ ...@@ -905,9 +908,9 @@
} }
if (isFormula) { 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) { if (funcPos > 0) {
match = s.slice(funcPos).match( /^([a-z_][a-z0-9_]*)/i); match = s.slice(funcPos).match( t.reFormula );
} }
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