jekyll-mentions 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll-mentions.rb +5 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b89fcfb1371b8e8a9ab22a97de0dfcb30008003e
4
- data.tar.gz: f819872d3158adb4dd5a275711c937818945417c
3
+ metadata.gz: ed489099b74d6bad8a4ddfb5436930239c9ec082
4
+ data.tar.gz: 15e7adfd015b21627d323b7cdb7ace36d9000bc2
5
5
  SHA512:
6
- metadata.gz: 34c89dbec393270f5a214ceafbe54666191b3c70b32b9ef2711b7e59512cb374318bd23e96b86663986fe25310dd2e8d389846afd55b7620604f4d9f9fbea2c9
7
- data.tar.gz: 009ca11e78e441653a7d8883f6e679bf1174deb95eac451480d7bbc3083de0e652efddfabf9b8c161635184c41e90d0f793c07074c1765f5af755f10fcff9049
6
+ metadata.gz: 216077af8ea8d21b2886f385f385a36234a9ee7f7673443c13bbfe3206a60e585b5d6c37c81ad0eb303c2278e86217d7f329bb97d52ddcb86bc777aab00804d8
7
+ data.tar.gz: 67d16954fd83647059ca5ee15dd2c4dac3f1c670960a5b079a4af1196426ba5cf7553f015d74664b78df9a61929130a5359f3edae0431d8d302c92b2fe7cee32
@@ -31,7 +31,11 @@ module Jekyll
31
31
  def filter_with_mention(src)
32
32
  filters[src] ||= HTML::Pipeline.new([
33
33
  HTML::Pipeline::MentionFilter
34
- ], { :base_url => src })
34
+ ], { :base_url => src , :username_pattern => mention_username_pattern })
35
+ end
36
+
37
+ def mention_username_pattern
38
+ Regexp.new(HTML::Pipeline::MentionFilter::UsernamePattern.source, Regexp::IGNORECASE)
35
39
  end
36
40
 
37
41
  # Public: Filters hash where the key is the mention base URL.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-mentions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-19 00:00:00.000000000 Z
11
+ date: 2016-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll