chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] [PATCH] Small bugfix for irregex


From: Peter Bex
Subject: [Chicken-hackers] [PATCH] Small bugfix for irregex
Date: Wed, 15 Aug 2012 21:45:48 +0200
User-agent: Mutt/1.4.2.3i

Hi hackers,

Here's a bugfix for irregex to change this behavior:

#;1> (use irregex)
#;2> (irregex-match 'http-url "http://call-cc.org/foo";)
#<regexp-match (0 submatches)>
#;3> (irregex-match 'http-url "http://call-cc.org/foo/bar";)
#f

into:

#;1> (use irregex)
#;2> (irregex-match 'http-url "http://call-cc.org/foo";)
#<regexp-match (0 submatches)>
#;3> (irregex-match 'http-url "http://call-cc.org/foo/bar";)
#<regexp-match (0 submatches)>

I think this should make it into the next release candidate.
It's already in upstream Irregex.  I'm currently waiting for
a reply from Alex about what to do with userinfo components
(username/password preceding hostname), since http-url doesn't
currently accept those.  But *this* is a more annoying bug.

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth

Attachment: 0001-Trivial-bugfix-for-irregex-to-make-it-accept-URLs-co.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]