lib/acfs/resource/attributes/uuid.rb in acfs-1.7.0 vs lib/acfs/resource/attributes/uuid.rb in acfs-2.0.0
- old
+ new
@@ -9,10 +9,10 @@
# class User < Acfs::Resource
# attribute :id, :uuid
# end
#
class UUID < Base
- UUID_REGEXP = /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/i.freeze
+ UUID_REGEXP = /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/i
# @api public
#
# Check if given object looks like a UUID, eg:
# `450b7a40-94ad-11e3-baa8-0800200c9a66`