Bug in uri standard library?

There seem to be a bug in the regexps appearing in lib/uri/common.rb.
The problem is the port regexp

      # port = *digit
      PORT = "\d*"

should be

      PORT = "\\d*"

The HOSTPORT regexp is also wrong in 1.8.1 but is corrected in ruby
cvs (1.8.2) :
      # hostport = host [ ":" port ]
      HOSTPORT = "#{HOST}(?::#{PORT})?"

I hope this is the good place to report such bugs, otherwise please
tell me.

Ciao

Denis