[#3006] mismatched quotation — "stevan apter" <apter@...>

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

[ruby-talk:02929] Re: Found another /p

From: Minero Aoki <aamine@...>
Date: 2000-05-22 13:49:48 UTC
List: ruby-talk #2929
Hi,

  In mail "[ruby-talk:02917] Found another /p"
    Dave Thomas <Dave@thomases.com> wrote:

> lib/net/http.rb: line 489
> 
> I think it can be safely changed to a /m

I'll change it not to use both 'p' and 'm'.
Thank you !
-------------------------------------------------------------------
Minero Aoki

--- org.http.rb	Mon May 22 18:49:22 2000
+++ http.rb	Mon May 22 18:50:37 2000
@@ -486,12 +486,12 @@
         line = @socket.readline
         break if line.empty?
 
-        m = /\A([^:]+):\s*(.*)/p.match( line )
+        m = /\A([^:]+):\s*/.match( line )
         unless m then
           raise HTTPBadResponse, 'wrong header line format'
         end
         nm = m[1]
-        line = m[2]
+        line = m.post_match
         if resp.key? nm then
           resp[nm] << ', ' << line
         else

In This Thread