@dhyasama/totem-models 11.61.0 → 11.62.0
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/Interaction.js +2 -2
- package/package.json +1 -1
package/lib/Interaction.js
CHANGED
|
@@ -155,8 +155,8 @@ module.exports = function(mongoose, config) {
|
|
|
155
155
|
if (!startTime) { return cb(new Error('startTime is required'), null); }
|
|
156
156
|
|
|
157
157
|
var self = this;
|
|
158
|
-
const strippedSummary =
|
|
159
|
-
|
|
158
|
+
const strippedSummary = summary.replace(/[\u{1F300}-\u{1F9FF}]|[\u{1F600}-\u{1F64F}]|[\u{1F680}-\u{1F6FF}]|[\u{2600}-\u{26FF}]|[\u{2700}-\u{27BF}]|[\u{1F900}-\u{1F9FF}]|[\u{1F1E0}-\u{1F1FF}]/gu, '').trim();
|
|
159
|
+
|
|
160
160
|
// Find interactions where either the exact summary matches or the stripped summary matches
|
|
161
161
|
var query = self.find({
|
|
162
162
|
$or: [
|