github-linguist 7.6.0 → 7.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/generated.rb +15 -11
- 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: 42b17a0a68c491c4e626189ab9ae76173497217f
|
4
|
+
data.tar.gz: d389315885988d9e8d2e12479a8cc1ebd5f85e50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a7daec8c03873714cb49765a2b8f27e380523f3b5d8e4dba91d68681780f63f3827f722110114f1859dc73049e45411f1fb18b1d5ea15ab379aa8f40b1da1b5
|
7
|
+
data.tar.gz: 30f210916c71456d4ba212827784825de4fe518a48f23ec4698d5b7c9deaf687d403d28fab64d34e5a9dd244273eaff924b09b0d33f9a9a0e1b440dcb1d7f683
|
data/grammars/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.6.
|
1
|
+
7.6.1
|
data/lib/linguist/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.6.
|
1
|
+
7.6.1
|
data/lib/linguist/generated.rb
CHANGED
@@ -621,23 +621,27 @@ module Linguist
|
|
621
621
|
return false if matches.empty?
|
622
622
|
return matches.map {|x| extract_html_meta(x) }.any? do |attr|
|
623
623
|
attr["name"].to_s.downcase == 'generator' &&
|
624
|
-
attr["content"].
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
624
|
+
[attr["content"], attr["value"]].any? do |cv|
|
625
|
+
!cv.nil? &&
|
626
|
+
cv.match(/^
|
627
|
+
( org \s+ mode
|
628
|
+
| j?latex2html
|
629
|
+
| groff
|
630
|
+
| makeinfo
|
631
|
+
| texi2html
|
632
|
+
| ronn
|
633
|
+
) \b
|
634
|
+
/ix)
|
635
|
+
end
|
632
636
|
end
|
633
637
|
end
|
634
638
|
|
635
639
|
# Internal: Extract a Hash of name/content pairs from an HTML <meta> tag
|
636
640
|
def extract_html_meta(match)
|
637
641
|
(match.last.sub(/\/\Z/, "").strip.scan(/
|
638
|
-
(?<=^|\s)
|
639
|
-
(name|content) # Attribute names we're interested in
|
640
|
-
\s* = \s*
|
642
|
+
(?<=^|\s) # Check for preceding whitespace
|
643
|
+
(name|content|value) # Attribute names we're interested in
|
644
|
+
\s* = \s* # Key-value separator
|
641
645
|
|
642
646
|
# Attribute value
|
643
647
|
( "[^"]+" # name="value"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-linguist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.6.
|
4
|
+
version: 7.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: charlock_holmes
|