misc/plugin/my-ex.rb in tdiary-4.0.5.1 vs misc/plugin/my-ex.rb in tdiary-4.1.0

- old
+ new

@@ -8,10 +8,10 @@ # a: 自分の日記内のリンク先情報('YYYYMMDD#pNN' または 'YYYYMMDD#cNN') # URLをそのまま書くこともできます。 # str: リンクにする文字列 # # Copyright (c) 2002 TADA Tadashi <sho@spc.gr.jp> -# Distributed under the GPL +# 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]