diff options
author | Ralph Amissah <ralph@amissah.com> | 2015-05-01 18:51:40 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2015-05-01 18:51:40 -0400 |
commit | 58d01ddb946f666b2bc70b867314c00b1e78b1e3 (patch) | |
tree | 6ed99ea64d1ad4b02a1c8f901fb6248af9abfe08 /lib/sisu/current/ao_hash_digest.rb | |
parent | debian/changelog (5.8.0-1) (diff) | |
parent | version & changelog, tag for release (diff) |
Merge tag 'sisu_6.5.0' into debian/sid
SiSU 6.5.0
Diffstat (limited to 'lib/sisu/current/ao_hash_digest.rb')
-rw-r--r-- | lib/sisu/current/ao_hash_digest.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/sisu/current/ao_hash_digest.rb b/lib/sisu/current/ao_hash_digest.rb index bc86a485..0864989c 100644 --- a/lib/sisu/current/ao_hash_digest.rb +++ b/lib/sisu/current/ao_hash_digest.rb @@ -103,9 +103,8 @@ module SiSU_AO_Hash #use md5 or to create hash of each ao object including ocn, & add into to each ao object end def endnote_digest(data) - t_o_bit=[] - data.each do |en_plus| - t_o_bit <<= case en_plus + data.each.map do |en_plus| + case en_plus when /#{Mx[:en_a_o]}|#{Mx[:en_b_o]}/ if en_plus =~/#{Mx[:en_a_o]}.+?#{Mx[:en_a_c]}|#{Mx[:en_b_o]}.+?#{Mx[:en_b_c]}/ t_o_txt,en_open,en_txt,en_close= @@ -133,8 +132,7 @@ module SiSU_AO_Hash end else en_plus end - end - t_o_bit.join + end.join end def stamped(t_o,hash_class) #decide what hash information is most useful, is compromise necessary? t_o.obj=SiSU_TextRepresentation::Alter.new(t_o).strip_clean_of_extra_spaces |