mudgangster

Log | Files | Refs

commit 3e1d0acd550162b693d3d6e6364c8bfc3771b38f
parent 2549499e78a242ec6423d138771882a35af34350
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Fri,  7 Sep 2018 10:20:43 +0300

Allow whitespace before commands to bypass aliases

Diffstat:
src/lua/alias.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lua/alias.lua b/src/lua/alias.lua @@ -1,7 +1,7 @@ local Aliases = { } local function doAlias( line ) - local command, args = line:match( "^%s*(%S+)%s*(.*)$" ) + local command, args = line:match( "^(%S+)%s*(.*)$" ) local alias = Aliases[ command ] if alias and alias.enabled then