mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-18 07:35:02 +00:00
Logs: add permission for whether a user is pinged in logs or not (mainly to not ping mods); templateFormatter: fix error when following a plain value variable with a function variable
This commit is contained in:
parent
693aee8214
commit
69bcf9619e
5 changed files with 75 additions and 44 deletions
|
@ -94,3 +94,8 @@ test("Supports base values in renderTemplate", async () => {
|
|||
const result = await renderTemplate('{if("", "+", "-")} {if(1, "+", "-")}');
|
||||
expect(result).toBe("- +");
|
||||
});
|
||||
|
||||
test("Edge case #1", async () => {
|
||||
const result = await renderTemplate("{foo} {bar()}");
|
||||
// No "Unclosed function" exception = success
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue