(gordon) Temporarily fix parsing

mio 2022-08-30 01:09:50 +00:00
parent 9b1631d658
commit b8175e7e45
3 changed files with 8 additions and 8 deletions

View File

@ -40,11 +40,11 @@ grammar = {
"set of 3 petit pancakes topped with hazelnut cocoa or strawberry cream",
},
origin = {
"Here, have a #meat_set#!",
"Here, have a #veggie_set#!",
"Here, have a #meat_set#, served with a side of #meat_side#!",
"Here, have a #meat_set#, served with a side of #veggie_side#!",
"Here, have a #veggie_set#, served with a side of #veggie_side#!",
"Here, have a #meat_set#, served with a #dessert#!",
"Here, have a #meat_set# !",
"Here, have a #veggie_set# !",
"Here, have a #meat_set# served with a side of #meat_side# !",
"Here, have a #meat_set# served with a side of #veggie_side# !",
"Here, have a #veggie_set# served with a side of #veggie_side# !",
"Here, have a #meat_set# served with a #dessert# !",
}
}

View File

@ -54,7 +54,7 @@ function folia.output(key)
end
local output_str = util.pick(foils[key]["origin"])[1]
local pattern = "#(%w+)#"
local pattern = "#(_%w+)#"
util.debug("output", "level 1: " .. output_str, folia.debug)
-- Check for expansion objects and replace them until none are found
while string.find(output_str, pattern) ~= nil do

View File

@ -12,7 +12,7 @@ itte_config = {
itte_handlers = {}
folia.foils_dir = arg[0] .. "/commands"
folia.foils_dir = "/home/mio/bin/itte/examples/gordon/commands"
local gordon = {}