We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f3f963 commit f29f043Copy full SHA for f29f043
libraries/Library/Std/APIs/Virtual Page.md
@@ -42,11 +42,11 @@ event.listen {
42
run = function(e)
43
local pageName = e.data.name
44
for _, def in pairs(config.get("virtualPages")) do
45
- local match = table.pack(pageName:match(def.pattern))
46
- if not(#match == 1 and match[1] == nil) then
+ local match = pageName:match(def.pattern)
+ if match != nil then
47
-- we got an actual match
48
return {
49
- text = def.run(table.unpack(match)),
+ text = def.run(match),
50
perm = "ro"
51
}
52
end
0 commit comments