Skip to content
Browse files

fix error on responce ":i", where i < 0

  • Loading branch information...
1 parent 20f5bc6 commit d30b09fa1ca71237b69abea23cbdfcb47dd1803f Nikolay Kostirya committed May 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 RedisSharding.pm
View
2 RedisSharding.pm
@@ -136,7 +136,7 @@ sub get_servers_reader {
@s or @s = @{$args{servers}};
}
- my $re_line = qr/([-+].+?|:\d+)\015\012/;
+ my $re_line = qr/([-+].+?|:-?\d+)\015\012/;
my $re_bulk_1 = qr/\*(\d+|-1)\015\012/;
my $re_bulk_2 = qr/\$(\d+|-1)\015\012/;

0 comments on commit d30b09f

Please sign in to comment.
Something went wrong with that request. Please try again.