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) {
141
141
142
142
static String escape (String text ) {
143
143
String escaped = text .replaceAll ("\\ '" , "\\ \\ '" );
144
- if (escaped .contains (" " )) {
144
+ if (escaped .contains (" " ) || escaped . contains ( ";" ) ) {
145
145
return "'" + escaped + "'" ;
146
146
}
147
147
return escaped ;
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ function unescape (text) {
131
131
// replace \' by '
132
132
const unescaped = text . split ( "\\'" ) . join ( "'" )
133
133
134
- if ( unescaped . includes ( ' ' ) ) {
134
+ if ( unescaped . includes ( ' ' ) || unescaped . includes ( ';' ) ) {
135
135
return unescaped . slice ( 1 , unescaped . length - 1 )
136
136
} else {
137
137
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
7
7
### 🐞 Bug fix
8
8
9
9
- The ` turn ` argument of the Referee's ` gameTurn() ` now starts at 1 instead of 0
10
+ - A Text can now have semicolons in it
10
11
- Improved error handling
11
12
12
13
## 3.4.7
You can’t perform that action at this time.
0 commit comments