diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-09-07 01:37:52 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-09-07 01:37:58 -0400 |
commit | 9aeb2343e59d1ca8df6f5e764aa33858b334a783 (patch) | |
tree | 678d4e501b4fa53e918ae0233838fcccc7ab62f2 /lib | |
parent | v4 v5: version & changelog (diff) |
v5: dal, book index, hash key, strip whitespace, a (required) fix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v5/dal_doc_str.rb | 3 |
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=[] |