Prefix CFG and loading vars to prevent collisions

This commit is contained in:
DominikDoom
2023-05-08 18:47:05 +02:00
parent 5d5db7bafe
commit 7fabc84a1e
8 changed files with 51 additions and 51 deletions

View File

@@ -1,5 +1,5 @@
const LYCO_REGEX = /<(?!e:|h:)[^,> ]*>?/g;
const LYCO_TRIGGER = () => CFG.useLycos && tagword.match(LYCO_REGEX);
const LYCO_TRIGGER = () => TAC_CFG.useLycos && tagword.match(LYCO_REGEX);
class LycoParser extends BaseTagParser {
parse() {
@@ -39,7 +39,7 @@ async function load() {
function sanitize(tagType, text) {
if (tagType === ResultType.lyco) {
return `<lyco:${text}:${CFG.extraNetworksDefaultMultiplier}>`;
return `<lyco:${text}:${TAC_CFG.extraNetworksDefaultMultiplier}>`;
}
return null;
}