wingbot 3.41.0 → 3.41.2
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,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
const { compileWithState } = require('../../src/utils');
|
|
3
2
|
const { StepState, getNextStep } = require('../../src/utils/slots');
|
|
4
3
|
|
|
@@ -37,11 +36,11 @@ function slotsContinue ({
|
|
|
37
36
|
|
|
38
37
|
const skipEntities = compileWithState(req, res, skip)
|
|
39
38
|
.split(',')
|
|
40
|
-
.map((e) => e.trim());
|
|
39
|
+
.map((e) => e.trim().replace(/^@/, ''));
|
|
41
40
|
|
|
42
41
|
slotState = slotState.map((s) => {
|
|
43
42
|
if (skipEntities.includes(s.e)) {
|
|
44
|
-
return { ...s, s: StepState.INITIALIZED }
|
|
43
|
+
return { ...s, s: StepState.INITIALIZED };
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
return s.e === step.entity
|
package/plugins/plugins.json
CHANGED
|
@@ -449,7 +449,7 @@
|
|
|
449
449
|
"inputs": [
|
|
450
450
|
{
|
|
451
451
|
"name": "skip",
|
|
452
|
-
"label": "Skip to entity (reset entities)",
|
|
452
|
+
"label": "Skip back to entity (reset entities)",
|
|
453
453
|
"type": "text",
|
|
454
454
|
"validations": [
|
|
455
455
|
{ "type": "regexp", "value": "^\\s*@[a-zA-Z0-9-]+\\s*(,\\s*@[a-zA-Z0-9-]+\\s*)*$", "message": "the entity for the slot filling should be valid" }
|