Manishearth / ChatExchange

A Python API for talking to Stack Exchange chat
Apache License 2.0
65 stars 36 forks source link

Recognize SE Chat response for 1 second wait #159

Closed makyen closed 4 years ago

makyen commented 4 years ago

When it's necessary to wait for only 1 second, the response from SE Chat is:

You can perform this action again in 1 second.

which doesn't match the current TOO_FAST_RE regular expression, because that regex requires "seconds" to be plural. This PR just changes the regular expression to not care if the response is singular or plural by removing the final s.