diff options
author | Eric Wong <e@80x24.org> | 2017-03-23 00:34:34 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-03-23 00:34:34 +0000 |
commit | 0693deaed76bbe48aa84a13d7f263085f4708424 (patch) | |
tree | e178952dfded6360ff91c25f8e478f38334f4048 | |
parent | f700e00e24dc29ee53a0f7ebc297110f98b1bd55 (diff) | |
download | mogilefs-client-0693deaed76bbe48aa84a13d7f263085f4708424.tar.gz |
There's no variable interpolation for the regexp.
-rw-r--r-- | lib/mogilefs/socket_common.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mogilefs/socket_common.rb b/lib/mogilefs/socket_common.rb index e35ae03..ec9249f 100644 --- a/lib/mogilefs/socket_common.rb +++ b/lib/mogilefs/socket_common.rb @@ -28,7 +28,7 @@ module MogileFS::SocketCommon @rbuf = timed_read(1024, "", timeout) or return # EOF end begin - @rbuf.sub!(/\A(.*\n)/o, "".freeze) and return $1 + @rbuf.sub!(/\A(.*\n)/, "".freeze) and return $1 tmp ||= "" if timed_read(1024, tmp, timeout) @rbuf << tmp |