1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

Generalise monitor_regex

This commit is contained in:
Josh Yudaken
2017-03-14 08:59:23 -07:00
parent 60998b0b20
commit 3f1b9ce650

View File

@@ -127,7 +127,7 @@ module.exports = {
reply_to_object: replyToObject, reply_to_object: replyToObject,
print: print, print: print,
err_code: /^([A-Z]+)\s+(.+)$/, err_code: /^([A-Z]+)\s+(.+)$/,
monitor_regex: /^[0-9]{10,11}\.[0-9]+ \[[0-9]{1,3} (.(?!\]))+.\]( ".+?")+$/, monitor_regex: /^[0-9]{10,11}\.[0-9]+ \[[0-9]+ .+\]( ".+?")+$/,
clone: convenienceClone, clone: convenienceClone,
callback_or_emit: callbackOrEmit, callback_or_emit: callbackOrEmit,
reply_in_order: replyInOrder reply_in_order: replyInOrder