dependabot-common 0.115.2 → 0.115.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab043ac61d68f051ee37b932fd0c13abdab6570877a3daf992c92de594838877
4
- data.tar.gz: cab7b77dabfc106e699da58f2c4ddf304a76e60823a3172da2958bcac38f633c
3
+ metadata.gz: 524828b3e39edf6bb3ea473618264a5aa08f0ebd662bcc4bd43d2b738869a665
4
+ data.tar.gz: 0d1b2c9612269e22b531f057c6af4647e0e6e27d525ada678ce04b793fa0690c
5
5
  SHA512:
6
- metadata.gz: 98cfd039b43f695b37c5466925271c39960b445f43349a9202348b8ee7a334653997cd3b47299fcc463a4bc7f3424e27f0057411cdb4775e94378f306d15025e
7
- data.tar.gz: f16086153e97711f3adba45dda4745229d2b712a4a4802053bc0a17daebcec23858dbf79ddfaa41723030c672f3f9410854ccd618e0c3296fe81b8ed1f7abd60
6
+ metadata.gz: 534faf192642a6304a1838c0b2f08694313609d8a1ca12ce6893c8fbdddf0619425610364fe11e95b79543486bb8dbdb3cc94267e772cd174d8346409401427a
7
+ data.tar.gz: c253b19aa6b7df502cb636fa4926a2282cd4021e79cc62b60ef2dc5d2db15a03a914fd826e99bdad240c369c898214f2da57da2e9145de7f83d6eba812ca7079
@@ -62,9 +62,12 @@ module Dependabot
62
62
  doc.walk do |node|
63
63
  if node.type == :link && node.url.match?(GITHUB_REF_REGEX)
64
64
  node.each do |subnode|
65
- last_match = subnode.string_content.match(GITHUB_REF_REGEX)
66
- next unless subnode.type == :text && last_match
65
+ unless subnode.type == :text &&
66
+ subnode.string_content.match?(GITHUB_REF_REGEX)
67
+ next
68
+ end
67
69
 
70
+ last_match = subnode.string_content.match(GITHUB_REF_REGEX)
68
71
  number = last_match.named_captures.fetch("number")
69
72
  repo = last_match.named_captures.fetch("repo")
70
73
  subnode.string_content = "#{repo}##{number}"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.115.2"
4
+ VERSION = "0.115.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.115.2
4
+ version: 0.115.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot