dependabot-common 0.95.20 → 0.95.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9899dee99d7093a533b4f9be5e33c49ef81fae9312835adc54319975a1e3613f
4
- data.tar.gz: b9ea9bd8a7f59c4b3e1fa9cd595ec6abe8ee201ff831a97b92e4be1765e9451b
3
+ metadata.gz: edff4db5c7964f525a5b6cfae5527ac69c1ffe6fe26b1474988bd211b581c5a9
4
+ data.tar.gz: 277c2b9edbf834d07fa19963bc36294672d1679cea8505c14aef5cb61aaa4ad2
5
5
  SHA512:
6
- metadata.gz: 783b48df38976ad6c4024b31c2da588878720ec8286385bca8784694c116b66968221af6a6c1025eeaed0ab1fa1e9402bc5c5462d60ab1c3395855bb022efb41
7
- data.tar.gz: 2fde1ce094967b0d8ab3cdea9fbcc322ff45032aaa2118614f8e788d0a943ecdf69fd04f3609bce72748a0ad9679e409281595f30f95a35f546053ba9d37b839
6
+ metadata.gz: f56f3db80549042391ea22b985852b83023c1d3acf52596d26c68af6a44a8d40849fabbeb44e199e41b2ffca9b6115c1b119f99e4bbfd7736873829a50cf3d1f
7
+ data.tar.gz: f6e65f77ed309bd6dd2510ade943ad0886bf79f863bafc27fc8b6bec4fd5486bd5bab03c9a53edc69755733ffbbf3d391bbd525aa4d1a165c8be78d97258652a
@@ -685,11 +685,18 @@ module Dependabot
685
685
  end
686
686
 
687
687
  def sanitize_links_and_mentions(text)
688
- text = text.gsub(%r{(?<![A-Za-z0-9])@[A-Za-z0-9\-/]+}) do |mention|
688
+ text = text.gsub(%r{(?<![A-Za-z0-9])@[\w.-/]+}) do |mention|
689
689
  next mention if mention.include?("/")
690
690
 
691
- "[**#{mention.tr('@', '')}**]"\
692
- "(https://github.com/#{mention.tr('@', '')})"
691
+ last_match = Regexp.last_match
692
+
693
+ if last_match.pre_match.chars.last == "[" &&
694
+ last_match.post_match.chars.first == "]"
695
+ "**#{mention.tr('@', '')}**"
696
+ else
697
+ "[**#{mention.tr('@', '')}**]"\
698
+ "(https://github.com/#{mention.tr('@', '')})"
699
+ end
693
700
  end
694
701
 
695
702
  text.gsub(GITHUB_REF_REGEX) do |ref|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.95.20"
4
+ VERSION = "0.95.21"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.95.20
4
+ version: 0.95.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-13 00:00:00.000000000 Z
11
+ date: 2019-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-ecr