diff --git a/app/Models/WebSocketDialogMsg.php b/app/Models/WebSocketDialogMsg.php index 70f4f099b..e369bdf4c 100644 --- a/app/Models/WebSocketDialogMsg.php +++ b/app/Models/WebSocketDialogMsg.php @@ -684,7 +684,7 @@ class WebSocketDialogMsg extends AbstractModel foreach ($matchs[1] as $key => $str) { preg_match("/data-denotation-char=\"(.*?)\"/", $str, $matchChar); preg_match("/data-id=\"(.*?)\"/", $str, $matchId); - preg_match("/data-value=\"(.*?)\"/", $str, $matchValye); + preg_match("/data-value=\"(.*?)\"/s", $str, $matchValye); $keyId = $matchId[1]; if ($matchChar[1] === "~") { if (Base::isNumber($keyId)) { @@ -760,7 +760,7 @@ class WebSocketDialogMsg extends AbstractModel return "\"{$match[5]}\"/"; }, $text); $text = preg_replace("/\[:@:(.*?):(.*?):\]/i", "@$2", $text); - $text = preg_replace("/\[:#:(.*?):(.*?):\]/i", "#$2", $text); + $text = preg_replace("/\[:#:(.*?):(.*?):\]/is", "#$2", $text); $text = preg_replace("/\[:~:(.*?):(.*?):\]/i", "~$2", $text); $text = preg_replace("/\[:QUICK:(.*?):(.*?):\]/i", "$2", $text); return preg_replace("/^(

<\/p>)+|(

<\/p>)+$/i", "", $text);