Skip to content

Commit f11691c

Browse files
Fix code scanning alert no. 15: Incomplete multi-character sanitization
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent ba2e8a5 commit f11691c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: app/reports/repository_contributors_stats.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ def commits_per_author_with_aliases
7171
next if registered_committers.include? committer
7272

7373
name = committer
74-
loop do
74+
previous = nil
75+
while name != previous
7576
previous = name
7677
name = name.gsub(/<.+@.+>/, '').strip
77-
break if name == previous
7878
end
7979
mail = committer[/<(.+@.+)>/, 1]
8080
merged << { name: name, mail: mail, commits: count, changes: changes_by_author[committer] || 0, committers: [committer] }

0 commit comments

Comments
 (0)