diff --git a/content/liberator.js b/content/liberator.js index bc7a3e24..58646992 100644 --- a/content/liberator.js +++ b/content/liberator.js @@ -659,7 +659,8 @@ const liberator = (function () //{{{ // partial sixth level expression evaluation // TODO: what is that really needed for, and where could it be used? // Or should it be removed? (c) Viktor - eval: function (string) + // Better name? See other liberator.eval() + evalExpression: function (string) { string = string.toString().replace(/^\s*/, "").replace(/\s*$/, ""); var matches = string.match(/^&(\w+)/); diff --git a/content/options.js b/content/options.js index c0d6cc0f..41cfad4c 100644 --- a/content/options.js +++ b/content/options.js @@ -268,7 +268,7 @@ liberator.Options = function () //{{{ return; } - var expr = liberator.eval(matches[4]); + var expr = liberator.evalExpression(matches[4]); if (typeof expr === undefined) { liberator.echoerr("E15: Invalid expression: " + matches[4]);