Commit ad456d6
Deal with non-strings in is_uuid?
In d971ad5 the method was rewritten
with the intention of being compatible with Ruby 3.3 where =~ is only
defined on strings.
A problem with this is that /regex/.match?(nil) works, but
/regex/.match?(42) raises a TypeError. It would have been broken with
the old code on Ruby 3.3 as well, but only raised a deprecation warning
on prior versions.
Fixes: d971ad5 ("Fix warning on nil comparison")1 parent d971ad5 commit ad456d6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
| 350 | + | |
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| |||
0 commit comments