diff --git a/_server/blockly/MotaAction.g4 b/_server/blockly/MotaAction.g4 index 7b616ace..b048ed4f 100644 --- a/_server/blockly/MotaAction.g4 +++ b/_server/blockly/MotaAction.g4 @@ -2398,7 +2398,7 @@ ActionParser.prototype.EvalString = function(EvalString) { } ActionParser.prototype.tryToUseEvFlag_e = function(defaultType, args, isShadow, comment) { - var match=/switch:([A-F])/.exec(args[0]) + var match=/^switch:([A-F])$/.exec(args[0]) if(match){ args[0]=match[1] return MotaActionBlocks['evFlag_e'].xmlText(args, isShadow, comment);