summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-30 10:32:10 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-30 10:32:10 +0100
commit6a378cc4f0bb00bdca20fda9096c833559a67f78 (patch)
treee92c2af04d5e3312237b9abd03a927426a628452 /misc/freeswitch/scripts
parente59c35892723c6c8b469c1ba016d9e62d3fe12b2 (diff)
parent5cf46b6467679ea0367cc0c00787f6f1c86560e4 (diff)
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'misc/freeswitch/scripts')
-rw-r--r--misc/freeswitch/scripts/common/str.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/freeswitch/scripts/common/str.lua b/misc/freeswitch/scripts/common/str.lua
index b19f299..ca6dcd9 100644
--- a/misc/freeswitch/scripts/common/str.lua
+++ b/misc/freeswitch/scripts/common/str.lua
@@ -7,6 +7,7 @@ module(...,package.seeall)
function try(array, arguments)
local argument = arguments:match('^(.-)%.') or arguments;
local remaining_arguments = arguments:match('%.(.-)$');
+ argument = tonumber(argument) or argument;
if argument and type(array) == 'table' then
if remaining_arguments then