Merge remote-tracking branch 'remotes/origin/3504-clients-compatible-with-3036' into...
[arvados.git] / services / api / app / helpers / collections_helper.rb
1 module CollectionsHelper
2   def stripped_portable_data_hash(uuid)
3     m = /([a-f0-9]{32}(\+[0-9]+)?)(\+.*)?/.match(uuid)
4     if m
5       m[1]
6     else
7       nil
8     end
9   end
10 end