Project

General

Profile

Patch #4520 ยป 0004-url-matching.patch

Patch to match all possible protocols, yet breaking some other matches. - Christoph Rauch, 2010-01-05 15:21

View differences:

lib/redmine/wiki_formatting/textile/formatter.rb
135 135
                          ^                        # beginning of line
136 136
                        )
137 137
                        (
138
                          (?:https?://)|           # protocol spec, or
139
                          (?:s?ftps?://)|
138
                          (?:\w+://)|              # protocol spec, or
140 139
                          (?:www\.)                # www.*
141 140
                        )
142 141
                        (
    (1-1/1)