Skip to content

Commit

Permalink
fix: regex match syntax for ruby 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
danini-the-panini committed Oct 22, 2021
1 parent 82ebc49 commit a0504f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kdl/types/uuid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def self.call(value, type = 'uuid')
return nil unless value.is_a? ::KDL::Value::String

uuid = value.value.downcase
raise ArgumentError, "`#{value.value}' is not a valid uuid" unless uuid.match?(RGX)
raise ArgumentError, "`#{value.value}' is not a valid uuid" unless uuid =~ RGX

new(uuid, type: type)
end
Expand Down

0 comments on commit a0504f8

Please sign in to comment.