Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-09-26 02:07:40 +0400
committerCiro Santilli <ciro.santilli@gmail.com>2014-10-03 11:18:46 +0400
commit2e9f5de86896e53e9cf34aef52bbc2ad08019a21 (patch)
tree48c469b4e8a9f4596f978a2602e4d3b5cfbece86 /lib/gitlab/diff
parenta3d90c5045ae322a013484165cdebcd764dc5d69 (diff)
Add parenthesis to function def with arguments.
Diffstat (limited to 'lib/gitlab/diff')
-rw-r--r--lib/gitlab/diff/parser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/diff/parser.rb b/lib/gitlab/diff/parser.rb
index 9d6309954a4..f7c1f20d762 100644
--- a/lib/gitlab/diff/parser.rb
+++ b/lib/gitlab/diff/parser.rb
@@ -72,7 +72,7 @@ module Gitlab
end
end
- def html_escape str
+ def html_escape(str)
replacements = { '&' => '&amp;', '>' => '&gt;', '<' => '&lt;', '"' => '&quot;', "'" => '&#39;' }
str.gsub(/[&"'><]/, replacements)
end