Merge branch 'master' into 1971-show-image-thumbnails
[arvados.git] / apps / workbench / app / helpers / collections_helper.rb
index b2eee48ea695bdec16988c2d1d9126ed66ba75e8..7b548dfb84b4ae25a2bbe2e57ffa265d29118277 100644 (file)
@@ -4,4 +4,8 @@ module CollectionsHelper
       {source: x.tail_uuid, target: x.head_uuid, type: x.name}
     end
   end
+
+  def self.match(uuid)
+    /^([a-f0-9]{32})(\+[0-9]+)?(\+.*?)?(\/.*)?$/.match(uuid.to_s)
+  end
 end