aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--patok.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/patok.lua b/patok.lua
index f192733..55cc8dc 100644
--- a/patok.lua
+++ b/patok.lua
@@ -2,7 +2,7 @@ local meta = {}
function meta:__call(p)
if p == nil then return self.out end
for k, v in pairs(p) do
- table.insert(self.out.tokens, {name=k, pattern=v})
+ table.insert(self.out.tokens, {name=k, pattern='^' .. v})
end
return self
end