mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-08-27 19:44:50 -05:00
Scavengers: Remove the temporary warning on commas (#4032)
This commit is contained in:
committed by
Guangcong Luo
parent
f5462fd535
commit
233bfbfda7
@@ -557,10 +557,6 @@ class ScavengerHunt extends Rooms.RoomGame {
|
||||
|
||||
for (let i = 0; i < questionArray.length; i++) {
|
||||
if (i % 2) {
|
||||
// This check will likely be removed within a week or so, as having access to a comma
|
||||
// in an answer is actually fairly useful and actually a reason why a separator was changed to
|
||||
// a semicolon. It's just here to give time for people to get used to that change.
|
||||
if (questionArray[i].includes(',')) return {err: "Commas are no longer correct syntax for separating answers - please use semicolons instead."};
|
||||
questionArray[i] = questionArray[i].split(';').map(p => p.trim());
|
||||
if (!questionArray[i].length || questionArray[i].some(a => !toId(a))) return {err: "Empty answer - only alphanumeric characters will count in answers."};
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user