misc/plugin/my-ex.rb in tdiary-4.1.3 vs misc/plugin/my-ex.rb in tdiary-4.2.0
- old
+ new
@@ -10,12 +10,10 @@
# str: リンクにする文字列
#
# Copyright (c) 2002 TADA Tadashi <sho@spc.gr.jp>
# Distributed under the GPL2 or any later version.
-unless @cgi.mobile_agent?
-
def my( a, str, title = nil )
date, frag = a.scan( /(\d{4}|\d{6}|\d{8}|\d{8}-\d+)[^\d]*(?:#?([pct]\d+))?$/ )[0]
anc = frag ? "#{date}#{frag}" : date
place, frag = frag.scan( /([cpt])(\d\d)/ )[0] if frag
if date and frag and @diaries[date] then
@@ -54,11 +52,9 @@
if title then
%Q[<a href="#{h index}#{anchor anc}" title="#{title}">#{str}</a>]
else
%Q[<a href="#{h index}#{anchor anc}">#{str}</a>]
end
-end
-
end
# Local Variables:
# mode: ruby
# indent-tabs-mode: t