mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 16:52:25 +01:00
rename old liberator.eval() to evalExpression
This commit is contained in:
@@ -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+)/);
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user