summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/gitano/lace.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/gitano/lace.lua b/lib/gitano/lace.lua
index 7fc1be5..97ed91b 100644
--- a/lib/gitano/lace.lua
+++ b/lib/gitano/lace.lua
@@ -9,6 +9,8 @@ local util = require 'gitano.util'
local gall = require 'gall'
local log = require 'gitano.log'
+local pcre = require "rex_pcre"
+
local function _loader(ctx, _name)
local global_name = _name:match("^global:(.+)$")
local name, tree, sha = global_name or _name
@@ -56,7 +58,10 @@ local match_types = {
end,
pattern = function(want, have)
return (have:match(want) ~= nil)
- end
+ end,
+ pcre = function(want, have)
+ return (pcre.match(have, want) ~= nil)
+ end
}
do