Merge branch 'master' into 4523-search-index
[arvados.git] / services / api / app / models / arvados_model.rb
index 8e98382bf070c53a8835eada595010421865a372..fc463378f6833550467f2bb754d072b309b71845 100644 (file)
@@ -451,6 +451,10 @@ class ArvadosModel < ActiveRecord::Base
     "_____-#{uuid_prefix}-_______________"
   end
 
+  def self.uuid_regex
+    %r/[a-z0-9]{5}-#{uuid_prefix}-[a-z0-9]{15}/
+  end
+
   def ensure_valid_uuids
     specials = [system_user_uuid]