From: <tad...@us...> - 2009-05-06 05:56:52
|
Revision: 3440 http://tdiary.svn.sourceforge.net/tdiary/?rev=3440&view=rev Author: tadatadashi Date: 2009-05-06 05:56:42 +0000 (Wed, 06 May 2009) Log Message: ----------- fixed redundant nested repeat operator in Regexp. Modified Paths: -------------- trunk/plugin/ChangeLog trunk/plugin/my-sequel.rb Modified: trunk/plugin/ChangeLog =================================================================== --- trunk/plugin/ChangeLog 2009-05-02 13:27:06 UTC (rev 3439) +++ trunk/plugin/ChangeLog 2009-05-06 05:56:42 UTC (rev 3440) @@ -1,3 +1,6 @@ +2009-05-06 TADA Tadashi <t...@td...> + * my-sequel.rb: fixed redundant nested repeat operator in Regexp. + 2009-04-30 SHIBATA Hiroshi <shi...@gm...> * amazon.rb: applied patch #151. thx arton. Modified: trunk/plugin/my-sequel.rb =================================================================== --- trunk/plugin/my-sequel.rb 2009-05-02 13:27:06 UTC (rev 3439) +++ trunk/plugin/my-sequel.rb 2009-05-06 05:56:42 UTC (rev 3440) @@ -487,7 +487,7 @@ alias :my_sequel_orig_my :my unless defined?(my_sequel_orig_my) def my(*args) if @my_sequel_active and @my_sequel_date and @my_sequel_anchor and @mode != 'preview' then - dst_date, frag = args[0].scan(/(\d{8,8})(?:[^\d]*?)?(?:#?p(\d+))?$/)[0] + dst_date, frag = args[0].scan(/(\d{8,8})(?:[^\d]*)(?:#?p(\d+))?$/)[0] if dst_date and dst_date < @my_sequel_date then dst_anchor = "#{dst_date}#{frag ? "#p%02d" % frag.to_i : ''}" @my_sequel.add(@my_sequel_anchor, dst_anchor) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |