fix re /^switch:([A-F])$/

This commit is contained in:
YouWei Zhao 2018-12-25 10:48:55 -05:00
parent a32d5d5e98
commit 2e6b7ebef7

View File

@ -2398,7 +2398,7 @@ ActionParser.prototype.EvalString = function(EvalString) {
} }
ActionParser.prototype.tryToUseEvFlag_e = function(defaultType, args, isShadow, comment) { 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){ if(match){
args[0]=match[1] args[0]=match[1]
return MotaActionBlocks['evFlag_e'].xmlText(args, isShadow, comment); return MotaActionBlocks['evFlag_e'].xmlText(args, isShadow, comment);