lib/acfs/resource/attributes/uuid.rb in acfs-1.6.0 vs lib/acfs/resource/attributes/uuid.rb in acfs-1.7.0

- old
+ new

@@ -33,10 +33,10 @@ # @return [String] Casted object as UUID. # def cast_value(value) if value.blank? nil - elsif value.to_s =~ UUID_REGEXP + elsif UUID_REGEXP.match?(value.to_s) value else raise TypeError.new "Invalid UUID: `#{value}'" end end