mirror of
https://github.com/PHIDIAS0303/ClusterChatSync.git
synced 2026-11-11 15:14:52 +09:00
1.0.6 RC9
This commit is contained in:
1 parent
43eb44a9f0
commit
4f6c380859
1 file changed
+4
-1
@@ -42,7 +42,7 @@ export const MAX_INBOUND_LENGTH = 400;
|
||||
|
||||
// Factorio renders these, so a Discord user could spoof a colour, an item link,
|
||||
// or a fake speaker line. Whitelist the real tags rather than matching \[.*\],
|
||||
// which would also eat innocent text like "array[0]" or "[lol]".
|
||||
// which would also eat innocent text like 'array[0]' or '[lol]'.
|
||||
const RICH_TEXT_RE = new RegExp(
|
||||
String.raw`\[/?(?:color|font|item|entity|technology|recipe|fluid|tile|virtual-signal`
|
||||
+ String.raw`|gps|img|specialisation|achievement|train|planet|space-location|quality)(?:=[^\]]*)?\]`,
|
||||
@@ -133,4 +133,7 @@ export const plugin: lib.PluginDeclaration = {
|
||||
ChatEvent,
|
||||
ChatFromDiscordEvent,
|
||||
],
|
||||
features: [
|
||||
'ScriptCommands',
|
||||
],
|
||||
};
|
||||
Reference in new issue
Block a user