Fix warnings#66
Conversation
1 similar comment
|
Hi - Thanks for this! I’m not able to look at it until next week, I’m afraid, so sorry for the delay… Thanks, Alex.
Alex Dalitz |
|
Hi - Sorry for the delay! I'm now back from the snowboarding in waist deep powder snow :-) and am happy to accept your pull request. However, I do have a question regarding the change in name.rb - could you please help to understand what is going on there? Thanks! Alex. |
|
The regular expression /\Gx([0..9a..fA..F][0..9a..fA..F])/o triggers the warning I assumed that the duplication of [0..9a..fA..F] was the problem, and so added {2} (to match the preceding element twice). But actually, I think there's a different problem - .. isn't the range operator in regexes, - is. So [0..9a..fA..F] seems to only match 0, 9, a, f, A, F and .: I think \h is the right thing to match hexadecimal here: If that makes sense to you, I'll update the pull request. |
|
Again, sorry for the delay... Yes, that sounds more sensible to me - thanks! Alex. |
I included dnsruby 1.57.0 in a project, and hit several Ruby warnings. I'd like to fix those up to reduce the noise in my tests (and make it easier to spot warnings that apply to my own code) - here's a pull request fixing the first few.