File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
engine/modules/entities/src/main
java/com/codingame/gameengine/module/entities
resources/view/entity-module Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ static String formatFrameTime(double t) {
141141
142142 static String escape (String text ) {
143143 String escaped = text .replaceAll ("\\ '" , "\\ \\ '" );
144- if (escaped .contains (" " )) {
144+ if (escaped .contains (" " ) || escaped . contains ( ";" ) ) {
145145 return "'" + escaped + "'" ;
146146 }
147147 return escaped ;
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ function unescape (text) {
131131 // replace \' by '
132132 const unescaped = text . split ( "\\'" ) . join ( "'" )
133133
134- if ( unescaped . includes ( ' ' ) ) {
134+ if ( unescaped . includes ( ' ' ) || unescaped . includes ( ';' ) ) {
135135 return unescaped . slice ( 1 , unescaped . length - 1 )
136136 } else {
137137 return unescaped
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ The CodinGame SDK is regularly updated and improved. This document lets you know
77### 🐞 Bug fix
88
99- The ` turn ` argument of the Referee's ` gameTurn() ` now starts at 1 instead of 0
10+ - A Text can now have semicolons in it
1011- Improved error handling
1112
1213## 3.4.7
You can’t perform that action at this time.
0 commit comments