Fixed rendering of URIs with port number; moved match.rb to test_helper (where it belongs)
This commit is contained in:
parent
832cfdf605
commit
178f3f53ee
4 changed files with 35 additions and 19 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue