Merge remote-tracking branch 'origin/master' into 2049-run-job-from-workbench
[arvados.git] / apps / workbench / app / helpers / collections_helper.rb
index b2eee48ea695bdec16988c2d1d9126ed66ba75e8..df0ba22eac92f411ed58a268ccfd5b6a4cb2af8d 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