This is an automated email from the ASF dual-hosted git repository.

mhamann pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-openwhisk-apigateway.git


The following commit(s) were added to refs/heads/master by this push:
     new 827cee1  Use gmatch instead of gfind (#274)
827cee1 is described below

commit 827cee1d27fe2a9b832c37ec93799f713f3d33aa
Author: Alex Song <alexson...@gmail.com>
AuthorDate: Thu Feb 22 14:50:20 2018 -0500

    Use gmatch instead of gfind (#274)
---
 scripts/lua/routing.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lua/routing.lua b/scripts/lua/routing.lua
index 3fea15b..6d20c61 100644
--- a/scripts/lua/routing.lua
+++ b/scripts/lua/routing.lua
@@ -200,7 +200,7 @@ end
 -- @param resourceKey redis resourceKey to check if it matches path parameter
 function _M.pathParamMatch(key, resourceKey)
   local pathParamVars = {}
-  for w in string.gfind(key, "({%w+})") do
+  for w in string.gmatch(key, "({%w+})") do
     w = string.sub(w, 2, string.len(w) - 1)
     pathParamVars[#pathParamVars + 1] = w
   end

-- 
To stop receiving notification emails like this one, please contact
mham...@apache.org.

Reply via email to