mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-17 15:15: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
|
@ -3,7 +3,7 @@ import at from "lodash.at";
|
|||
const TEMPLATE_CACHE_SIZE = 100;
|
||||
const templateCache: Map<string, ParsedTemplate> = new Map();
|
||||
|
||||
class TemplateParseError extends Error {}
|
||||
export class TemplateParseError extends Error {}
|
||||
|
||||
interface ITemplateVar {
|
||||
identifier: string;
|
||||
|
@ -196,7 +196,6 @@ export function parseTemplate(str: string): ParsedTemplate {
|
|||
}
|
||||
|
||||
const newVar = newTemplateVar();
|
||||
if (currentVar) newVar._parent = currentVar;
|
||||
currentVar = newVar;
|
||||
rootVar = newVar;
|
||||
inVar = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue