From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, T_RP_MATCHES_RCVD shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: meta@public-inbox.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 22DB61F8C2; Mon, 22 Dec 2014 01:50:45 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Cc: Eric Wong Subject: [PATCH 1/2] Documentation/txt2pre: support #fragments and ftp:// Date: Mon, 22 Dec 2014 01:50:41 +0000 Message-Id: <1419213042-3078-2-git-send-email-e@80x24.org> X-Mailer: git-send-email 2.2.0.35.g882592c In-Reply-To: <1419213042-3078-1-git-send-email-e@80x24.org> References: <1419213042-3078-1-git-send-email-e@80x24.org> List-Id: Occasionally we'll use these for links. --- Documentation/txt2pre | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/txt2pre b/Documentation/txt2pre index f84f9c0..0384a1d 100755 --- a/Documentation/txt2pre +++ b/Documentation/txt2pre @@ -17,7 +17,7 @@ my ($title) = ($str =~ /\A([^\n]+)/); # temporarily swap > for escape so our s!! to add href works. # there's probably a way to do this with only a single s!! ... $str =~ s!>!\e!g; -$str =~ s!\b(https?://[\w+\+\&\?\.\%\;/-]+)!$1!g; +$str =~ s!\b((ftp|https?)://[\w+\+\&\?\.\%\;/#-]+)!$1!g; $str =~ s!\e!>!g; # swap escapes back to > print '', -- EW