[ARVADOS] updated: b58953e9b4c54757db68dd8661aeb170635643b2

Git user git at public.curoverse.com
Mon May 8 09:18:45 EDT 2017


Summary of changes:
 apps/workbench/app/views/work_units/_component_detail.html.erb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

       via  b58953e9b4c54757db68dd8661aeb170635643b2 (commit)
      from  d4eead3501dfe0f002e95574b91d835ed792d92e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit b58953e9b4c54757db68dd8661aeb170635643b2
Author: radhika <radhika at curoverse.com>
Date:   Mon May 8 09:18:19 2017 -0400

    10645: improve location regex usage

diff --git a/apps/workbench/app/views/work_units/_component_detail.html.erb b/apps/workbench/app/views/work_units/_component_detail.html.erb
index 7570ad2..99ac759 100644
--- a/apps/workbench/app/views/work_units/_component_detail.html.erb
+++ b/apps/workbench/app/views/work_units/_component_detail.html.erb
@@ -181,10 +181,10 @@
                     <div style="max-height:200px; overflow:auto;">
                       <% mnt_inputs.each_line do |l| %>
                         <% text_part = l %>
-                          <% match = l.match /\"keep:.*?\"/ %>
-                          <% if match %>
-                            <% text_part = l[0..l.index("\"keep:")-1] %>
-                            <% loc_part = match[0][6..-2] %>
+                          <% match = l.match /(.*)(\"keep:.*?\")/ %>
+                          <% if match and match.size == 3 %>
+                            <% text_part = match[1] %>
+                            <% loc_part = match[2][6..-2] %>
                           <% end %>
                           <span style="white-space: pre-wrap; margin: none;"><%= text_part %><%= if loc_part then link_to_arvados_object_if_readable(loc_part, loc_part, friendly_name: true) end %> <% if loc_part then %> <br/> <% end %></span>
                       <% end %>

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list