modelmix 2.6.6 → 2.6.8
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/index.js +4 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -236,7 +236,10 @@ class MessageHandler {
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
template(input, replace) {
|
|
239
|
-
|
|
239
|
+
for (const k in replace) {
|
|
240
|
+
input = input.split(/([¿?¡!,"';:\(\)\.\s])/).map(x => x === k ? replace[k] : x).join("");
|
|
241
|
+
}
|
|
242
|
+
return input;
|
|
240
243
|
}
|
|
241
244
|
|
|
242
245
|
groupByRoles(messages) {
|