From f9f22ffcfbe6c9dc4f28a57a8705f4950ac0d945 Mon Sep 17 00:00:00 2001 From: Chenjianyu Date: Thu, 6 Jul 2023 09:49:57 +0800 Subject: [PATCH] * remove markdown syntax for now. --- module/ai/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/ai/model.php b/module/ai/model.php index 19663bc647..9bca925ed9 100644 --- a/module/ai/model.php +++ b/module/ai/model.php @@ -432,7 +432,7 @@ class aiModel extends model } /* @see https://stackoverflow.com/a/2934602 */ - return "'''\n" . preg_replace_callback('/\\\\u([0-9a-fA-F]{4})/', function ($match) {return mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE');}, json_encode($newData)) . "\n'''\n" . $supplement; + return preg_replace_callback('/\\\\u([0-9a-fA-F]{4})/', function ($match) {return mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE');}, json_encode($newData)) . "\n" . $supplement; } /**