@@ -586,6 +586,10 @@ public Vector jsupdateForm(java.util.Map vartypes,
586586 java .util .Map varelemtypes , Vector types , Vector ents )
587587 { return new Vector (); }
588588
589+ public Vector jspreSideEffect (java .util .Map vartypes ,
590+ java .util .Map varelemtypes , Vector types , Vector ents )
591+ { return new Vector (); }
592+
589593 public Expression jsexpressionToKM3 (java .util .Map vartypes ,
590594 java .util .Map varelemtypes , Vector types , Vector ents )
591595 { if ("this" .equals (value ))
@@ -637,7 +641,18 @@ else if (Expression.isDouble(value))
637641 }
638642 else if ("literal" .equals (tag ) ||
639643 "propertyName" .equals (tag ))
640- {
644+ { int sze = value .length ();
645+
646+ if (sze > 1 && '/' == value .charAt (0 ) && '/' == value .charAt (sze ))
647+ { BasicExpression regexpr =
648+ new BasicExpression ("\" " +
649+ value .substring (1 ,value .length ()-1 ) + "\" " );
650+ regexpr .setType (new Type ("String" ,null ));
651+ regexpr .setElementType (new Type ("String" ,null ));
652+ regexpr .setUmlKind (Expression .VALUE );
653+ return regexpr ;
654+ }
655+
641656 BasicExpression v = new BasicExpression (value );
642657 if (Expression .isString (value ))
643658 { if ('\'' == value .charAt (0 ))
0 commit comments