koishi-plugin-chatluna-character 0.0.78 → 0.0.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.cjs CHANGED
@@ -264,7 +264,7 @@ function splitSentence(text) {
264
264
  }
265
265
  __name(splitSentence, "splitSentence");
266
266
  function matchAt(str) {
267
- const atRegex = /<at[^>]*>(.*?)<\/at>/;
267
+ const atRegex = /<at[^>]*>(.*?)<\/at>/gs;
268
268
  return [...str.matchAll(atRegex)].map((item) => {
269
269
  return {
270
270
  at: item[1],
package/lib/index.mjs CHANGED
@@ -232,7 +232,7 @@ function splitSentence(text) {
232
232
  }
233
233
  __name(splitSentence, "splitSentence");
234
234
  function matchAt(str) {
235
- const atRegex = /<at[^>]*>(.*?)<\/at>/;
235
+ const atRegex = /<at[^>]*>(.*?)<\/at>/gs;
236
236
  return [...str.matchAll(atRegex)].map((item) => {
237
237
  return {
238
238
  at: item[1],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-chatluna-character",
3
3
  "description": "Let the large language model play a role, disguise as a group friend",
4
- "version": "0.0.78",
4
+ "version": "0.0.79",
5
5
  "type": "module",
6
6
  "main": "lib/index.cjs",
7
7
  "module": "lib/index.mjs",