mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
fix event id parsing to allow for dashes in keys
This commit is contained in:
parent
a4d4bf2bf7
commit
695472a8aa
1 changed files with 3 additions and 2 deletions
|
@ -14,8 +14,9 @@ module.exports = EventLogger =
|
|||
|
||||
checkEventOrder: (channel, message_id, message) ->
|
||||
return if typeof(message_id) isnt 'string'
|
||||
[key, count] = message_id.split("-", 2)
|
||||
count = parseInt(count, 10)
|
||||
return if !(result = message_id.match(/^(.*)-(\d+)$/))
|
||||
key = result[1]
|
||||
count = parseInt(result[2], 0)
|
||||
if !(count >= 0)# ignore checks if counter is not present
|
||||
return
|
||||
# store the last count in a hash for each host
|
||||
|
|
Loading…
Reference in a new issue