summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts/common/str.lua
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-23 11:48:28 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-23 11:48:28 +0100
commitc50b915305dce16a8727aaf9515592825967fba9 (patch)
tree6c7df8dfc1613a974ddd1501709e9b16464eac2e /misc/freeswitch/scripts/common/str.lua
parentbec4553238a69ac710ea28b90480dc3a2bde5539 (diff)
parent81e646de2740d4a378623d2351aefaabe43b4801 (diff)
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'misc/freeswitch/scripts/common/str.lua')
-rw-r--r--misc/freeswitch/scripts/common/str.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/freeswitch/scripts/common/str.lua b/misc/freeswitch/scripts/common/str.lua
index 32f054e..793c191 100644
--- a/misc/freeswitch/scripts/common/str.lua
+++ b/misc/freeswitch/scripts/common/str.lua
@@ -5,6 +5,10 @@
module(...,package.seeall)
function try(array, arguments)
+ if type(arguments) ~= 'string' or type(array) ~= 'table' then
+ return nil;
+ end
+
local result = array;
arguments:gsub('([^%.]+)', function(entry)