aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/dal_doc_str.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-09-07 01:49:55 -0400
committerRalph Amissah <ralph@amissah.com>2013-09-07 01:49:55 -0400
commit3b73f8c22733a7bddc4ffb8316db7caa0aae734c (patch)
tree7e400acbf792163f867be3635a881b2960d304b2 /lib/sisu/v5/dal_doc_str.rb
parentdebian/changelog (4.2.2-1) (diff)
parentv5: db, book index, convert hash back to string (diff)
Merge tag 'sisu_4.2.3' into debian/sid
SiSU 4.2.3
Diffstat (limited to 'lib/sisu/v5/dal_doc_str.rb')
-rw-r--r--lib/sisu/v5/dal_doc_str.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sisu/v5/dal_doc_str.rb b/lib/sisu/v5/dal_doc_str.rb
index 5b6c03bf..87e5c908 100644
--- a/lib/sisu/v5/dal_doc_str.rb
+++ b/lib/sisu/v5/dal_doc_str.rb
@@ -196,7 +196,8 @@ module SiSU_DAL_DocumentStructureExtract
? term_node
: (term_node + '+0')
term_nodes << term_node
- @use,plus=rgx_idx_ocn_seg.match(term_node)[1,2]
+ use,plus=rgx_idx_ocn_seg.match(term_node)[1,2]
+ @use=use.strip
idx_hash[@use]={ sub: [], plus: plus } unless idx_hash[@use] and defined? idx_hash[@use]
when Array
subterm_nodes=[]