Fixed rendering of URIs with port number; moved match.rb to test_helper (where it belongs)

This commit is contained in:
Alexey Verkhovsky 2005-01-16 16:04:45 +00:00
parent 832cfdf605
commit 178f3f53ee
4 changed files with 35 additions and 19 deletions

View file

@ -35,6 +35,9 @@ class URIChunk < Chunk::Abstract
# markup. (Images: !URI!) and other punctuation eg, (http://wiki.com/)
URI_ENDING = '[)!]'
# Correct a typo bug in ruby 1.8.x lib/uri/common.rb
PORT = '\\d*'
# The basic URI expression as a string
URI_PATTERN =
"(?:(#{SCHEME})://)?" + # Optional scheme:// (\1|\8)