Vote #71478
未完了Support More Hyperlink Protocols in the Wiki Formatter (textile/formatter.rb)
ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
-
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:
0%
予定工数:
Redmineorg_URL:
category_id:
0
version_id:
0
issue_org_id:
10408
author_id:
51432
assigned_to_id:
0
comments:
0
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
説明
The wiki formatter, while awesome, only supports a few protocols for the auto linking (AUTO_LINK_RE).
So, I made this little hack to get it to support almost anything
This in-line patch is against 1.3.0 and hasn't crashed mine (yet!) :0
--- formatter.rb.orig 2012-03-08 10:03:52.000000000 -0800
+++ formatter.rb 2012-03-08 10:04:06.000000000 -0800
@@ -132,9 +132,8 @@
^ # beginning of line
)
(
- (?:https?://)| # protocol spec, or
- (?:s?ftps?://)|
(?:www\.) # www.*
+ (?:\w{3,6}://) # Almost anything ssh, vnc, http, https, mailto, ics, tel, sip, foo, beer, monkey
)
(
(\S+?) # url
Thanks for awesome software!
表示するデータがありません