Skip to content

Commit

Permalink
Issue SOBotics#9: Fix rate-limiting pluralisation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
double-beep committed Oct 18, 2020
1 parent 46e0ff8 commit 53d83b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/sobotics/chatexchange/chat/Room.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public final class Room {
private static final Logger LOGGER = LoggerFactory.getLogger(Room.class);

private static final String SUCCESS = "ok";
private static final Pattern TRY_AGAIN_PATTERN = Pattern.compile("You can perform this action again in (\\d+) seconds");
private static final Pattern TRY_AGAIN_PATTERN = Pattern.compile("You can perform this action again in (\\d+) second");
private static final Pattern CURRENT_USERS_PATTERN = Pattern.compile("\\{id:\\s?(\\d+),");
private static final Pattern MARKDOWN_LINK_PATTERN = Pattern.compile("\\[(\\\\]|[^\\]])+\\]\\((https?:)?//(\\\\\\)|\\\\\\(|[^\\s)(])+\\)"); // oh dear god
private static final Pattern FAILED_UPLOAD_PATTERN = Pattern.compile("var error = '(.+)';");
Expand Down

0 comments on commit 53d83b7

Please sign in to comment.