[Hiki-dev:01147] [patch] support for file URLs

アーカイブの一覧に戻る

Richard Zidlicky rz****@linux*****
2007年 2月 4日 (日) 03:12:46 JST


Hello,

I found that URLs of the form href="file://..." are handled
inconsistently. 

They can be quite useful for a personal wiki and current behaviour 
makes no sense.


Regards
Richard

--- hiki-0.8.6/style/default/html_formatter.rb.rz	2007-02-03 19:02:11.000000000 +0100
+++ hiki-0.8.6/style/default/html_formatter.rb	2007-02-03 19:04:32.000000000 +0100
@@ -121,7 +121,7 @@
       ret.join
     end
 
-    URI_RE = /\A#{URI.regexp( %w( http https ftp mailto ) )}\z/
+    URI_RE = /\A#{URI.regexp( %w( http https ftp mailto file ) )}\z/
 
     def replace_link( text )
       text.gsub( %r|<a href="(.+?)">(.+?)</a>| ) do |str|



Hiki-dev メーリングリストの案内
アーカイブの一覧に戻る