aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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=[]