You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/02/22 19:50:24 UTC

[GitHub] mhamann closed pull request #274: Use gmatch instead of gfind

mhamann closed pull request #274: Use gmatch instead of gfind
URL: https://github.com/apache/incubator-openwhisk-apigateway/pull/274
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

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


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services