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 +1 -1
- package/lib/index.mjs +1 -1
- package/package.json +1 -1
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