From f31e286f4a73c5c0f355512b0cb45c6c82088516 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 22 Jun 2013 01:13:46 -0400 Subject: v5: general code cleaning * propagate back to v4 after testing --- lib/sisu/v5/dal_idx.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/sisu/v5/dal_idx.rb') diff --git a/lib/sisu/v5/dal_idx.rb b/lib/sisu/v5/dal_idx.rb index 67f2805d..b87797bc 100644 --- a/lib/sisu/v5/dal_idx.rb +++ b/lib/sisu/v5/dal_idx.rb @@ -130,7 +130,7 @@ module SiSU_DAL_BookIndex idx_lst=idx[:rough_idx].scan(/[^|:]+/) idx_lst[0]=idx_lst[0].strip if idx_lst[0] =~/.+?\+\d+/ - use,plus=/(.+?)\+(\d+)/.match(idx_lst[0])[1,2] + use=/(.+?)\+(?:\d+)/.match(idx_lst[0])[1] else use=idx_lst[0] end use=use[0].chr.capitalize + use[1,use.length] @@ -282,7 +282,6 @@ module SiSU_DAL_BookIndex end end end - idx @x +=1 end end -- cgit v1.2.3