wingbot 3.68.3 → 3.68.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wingbot",
3
- "version": "3.68.3",
3
+ "version": "3.68.5",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",
@@ -48,7 +48,7 @@ function conversationTestApi (testsSource, botFactory, options, acl) {
48
48
 
49
49
  await ctx.audit('conversationTest', args);
50
50
 
51
- return test.test(validationRequestBody, step, lang);
51
+ return test.test(validationRequestBody, step, lang, ctx.params.snapshot);
52
52
  }
53
53
  };
54
54
  }
@@ -102,7 +102,7 @@ function validateBotApi (botFactory, postBackTest = null, textTest = null, acl =
102
102
  validationRequestBody = decompress(validationRequestBody);
103
103
  }
104
104
 
105
- const bot = await Promise.resolve(botFactory(true, ctx.snapshot));
105
+ const bot = await Promise.resolve(botFactory(true, ctx.params.snapshot));
106
106
 
107
107
  await ctx.audit('validateBot');
108
108
  return validate(bot, validationRequestBody, postBackTest, textTest);
@@ -608,7 +608,7 @@ class CustomEntityDetectionModel {
608
608
  });
609
609
 
610
610
  if (options.matchWholeWords && !searchWithinWords) {
611
- replaced = `(?<=(^|[^a-z0-9\u00C0-\u017F]))${replaced}(?=([^a-z0-9\u00C0-\u017F]|$))`;
611
+ replaced = `(?<=(^|[^a-zA-Z0-9\u00C0-\u017F]))${replaced}(?=([^a-zA-Z0-9\u00C0-\u017F]|$))`;
612
612
  }
613
613
 
614
614
  const r = new RegExp(replaced, options.caseSensitiveRegex ? '' : 'i');