From 2e6b7ebef73715d35ffb443bdffbdc818b7a15d3 Mon Sep 17 00:00:00 2001 From: YouWei Zhao Date: Tue, 25 Dec 2018 10:48:55 -0500 Subject: [PATCH] fix re /^switch:([A-F])$/ --- _server/blockly/MotaAction.g4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);