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.
- checksums.yaml +4 -4
- data/lib/jekyll-mentions.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed489099b74d6bad8a4ddfb5436930239c9ec082
|
4
|
+
data.tar.gz: 15e7adfd015b21627d323b7cdb7ace36d9000bc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 216077af8ea8d21b2886f385f385a36234a9ee7f7673443c13bbfe3206a60e585b5d6c37c81ad0eb303c2278e86217d7f329bb97d52ddcb86bc777aab00804d8
|
7
|
+
data.tar.gz: 67d16954fd83647059ca5ee15dd2c4dac3f1c670960a5b079a4af1196426ba5cf7553f015d74664b78df9a61929130a5359f3edae0431d8d302c92b2fe7cee32
|
data/lib/jekyll-mentions.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2016-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|