Skip to content

Commit

Permalink
Fix rubocop and spec
Browse files Browse the repository at this point in the history
  • Loading branch information
greysteil committed Aug 31, 2019
1 parent adaadff commit 8ab28e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def sanitize_links(text)
ref.gsub("github.com", github_redirection_service || "github.com")
if (previous_char.nil? || previous_char.match?(/\s/)) &&
(next_char.nil? || next_char.match?(/\s/))
number = last_match.named_captures.fetch('number')
repo = last_match.named_captures.fetch('repo')
number = last_match.named_captures.fetch("number")
repo = last_match.named_captures.fetch("repo")
"[#{repo}##{number}]"\
"(#{sanitized_url})"
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def commits_details(base:, head:)
"- [`5555535`](https://github.com/gocardless/business/commit/"\
"5555535ff2aa9d7ce0403d7fd4aa010d94723076) \n"\
"- [`0bfb8c3`](https://github.com/gocardless/business/commit/"\
"0bfb8c3f0d2701abf9248185beeb8adf643374f6) Spacing: [#5]"\
"0bfb8c3f0d2701abf9248185beeb8adf643374f6) Spacing: [my/repo#5]"\
"(https://github-redirect.dependabot.com/my/repo/pull/5)\n"\
"- [`a5970da`](https://github.com/gocardless/business/commit/"\
"a5970daf0b824e4c3974e57474b6cf9e39a11d0f) "\
Expand Down

0 comments on commit 8ab28e2

Please sign in to comment.