@onereach/step-voice 7.0.28 → 7.0.29

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.
Files changed (2) hide show
  1. package/dst/voice.js +1 -1
  2. package/package.json +1 -1
package/dst/voice.js CHANGED
@@ -301,7 +301,7 @@ class VoiceStep extends step_1.default {
301
301
  }
302
302
  let parts;
303
303
  if (choice.grammar?.value) {
304
- parts = choice.grammar.value;
304
+ parts = choice.grammar.value.flatMap((v) => v.split(','));
305
305
  }
306
306
  else {
307
307
  parts = lodash_1.default.chain(choice.text).split(/\s*,\s*/);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "7.0.28",
3
+ "version": "7.0.29",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",