projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch '2288-smoke-test'
[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..7b548dfb84b4ae25a2bbe2e57ffa265d29118277 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