Skip to content

Commit 6067bfc

Browse files
committed
fix typos of source comments at lib/redmine/wiki_formatting.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@13070 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent 242b440 commit 6067bfc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/redmine/wiki_formatting.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,20 +111,20 @@ module LinksHelper
111111
(?=<|\s|$)
112112
}x unless const_defined?(:AUTO_LINK_RE)
113113

114-
# Destructively remplaces urls into clickable links
114+
# Destructively replaces urls into clickable links
115115
def auto_link!(text)
116116
text.gsub!(AUTO_LINK_RE) do
117117
all, leading, proto, url, post = $&, $1, $2, $3, $6
118118
if leading =~ /<a\s/i || leading =~ /![<>=]?/
119-
# don't replace URL's that are already linked
120-
# and URL's prefixed with ! !> !< != (textile images)
119+
# don't replace URLs that are already linked
120+
# and URLs prefixed with ! !> !< != (textile images)
121121
all
122122
else
123-
# Idea below : an URL with unbalanced parethesis and
123+
# Idea below : an URL with unbalanced parenthesis and
124124
# ending by ')' is put into external parenthesis
125125
if ( url[-1]==?) and ((url.count("(") - url.count(")")) < 0 ) )
126-
url=url[0..-2] # discard closing parenth from url
127-
post = ")"+post # add closing parenth to post
126+
url=url[0..-2] # discard closing parenthesis from url
127+
post = ")"+post # add closing parenthesis to post
128128
end
129129
content = proto + url
130130
href = "#{proto=="www."?"http://www.":proto}#{url}"
@@ -133,7 +133,7 @@ def auto_link!(text)
133133
end
134134
end
135135

136-
# Destructively remplaces email addresses into clickable links
136+
# Destructively replaces email addresses into clickable links
137137
def auto_mailto!(text)
138138
text.gsub!(/([\w\.!#\$%\-+.]+@[A-Za-z0-9\-]+(\.[A-Za-z0-9\-]+)+)/) do
139139
mail = $1

0 commit comments

Comments
 (0)