diff --git a/public/script.js b/public/script.js index c393e62c0..c95133f34 100644 --- a/public/script.js +++ b/public/script.js @@ -2443,9 +2443,14 @@ function sendSystemMessage(type, text, extra = {}) { is_send_press = false; } +/** + * Extracts the contents of bias macros from a message. + * @param {string} message Message text + * @returns {string} Message bias extracted from the message (or an empty string if not found) + */ export function extractMessageBias(message) { if (!message) { - return null; + return ''; } try {