1 module CollectionsHelper
4 {source: x.tail_uuid, target: x.head_uuid, type: x.name}
9 /^([a-f0-9]{32})(\+[0-9]+)?(\+.*?)?(\/.*)?$/.match(uuid.to_s)
12 def self.is_image file
13 /\.(jpg|jpeg|gif|png|svg)$/i.match(file)
16 def self.file_path file
19 f0 = f0[2..-1] if f0[0..1] == './'
20 f0 += '/' if not f0.empty?
21 file_path = "#{f0}#{file[1]}"