projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge remote-tracking branch 'origin/master' into 2049-run-job-from-workbench
[arvados.git]
/
apps
/
workbench
/
app
/
helpers
/
collections_helper.rb
diff --git
a/apps/workbench/app/helpers/collections_helper.rb
b/apps/workbench/app/helpers/collections_helper.rb
index b2eee48ea695bdec16988c2d1d9126ed66ba75e8..df0ba22eac92f411ed58a268ccfd5b6a4cb2af8d 100644
(file)
--- a/
apps/workbench/app/helpers/collections_helper.rb
+++ b/
apps/workbench/app/helpers/collections_helper.rb
@@
-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