Repository navigation
Expand file tree
/
Copy pathpatterns.js
More file actions
103 lines (103 loc) · 2.38 KB
/
Copy pathpatterns.js
File metadata and controls
103 lines (103 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
module.exports = [
{
pattern: "<{{KEY}}>(.*?)</{{KEY}}>",
KEYS: ["title"],
},
{
pattern: "<{{KEY}}.*?>(.*?)</{{KEY}}>",
KEYS: ["title"],
},
{
pattern:
'<meta.*?name="{{KEY}}".*?content="(.*?)".*?>|<meta.*?content="(.*?)".*?name="{{KEY}}".*?>',
KEYS: [
"description",
"keywords",
"copyright",
"language",
"robots",
"generator",
"viewport",
"google-site-verification",
"msvalidate.01",
"twitter:card",
"twitter:site",
"twitter:creator",
"twitter:title",
"twitter:description",
"twitter:image",
"summary",
"classification",
"author",
"designer",
"owner",
"url",
"category",
"distribution",
"rating",
"date",
"apple-mobile-web-app-title",
"apple-mobile-web-app-capable",
"apple-touch-fullscreen",
"apple-mobile-web-app-status-bar-style",
"format-detection",
"msapplication-starturl",
"msapplication-window",
"msapplication-navbutton-color",
"application-name",
"msapplication-tooltip",
"msapplication-task",
"application-name",
"msapplication-TileColor",
"msapplication-square70x70logo",
"msapplication-square150x150logo",
"msapplication-wide310x150logo",
"msapplication-square310x310logo",
"msapplication-notification",
"dcterms.creator",
"dc.language",
"dcterms.title",
"dcterms.description",
"csrf-param",
"csrf-token",
"theme-color",
"geo.region",
"geo.position",
"icbm",
"thumbnail",
"google-analytics",
"hostname",
],
},
{
pattern:
'<meta.*?property="{{KEY}}".*?content="(.*?)".*?>|<meta.*?content="(.*?)".*?property="{{KEY}}".*?>',
KEYS: [
"fb:app_id",
"og:url",
"og:type",
"og:title",
"og:description",
"og:image",
"twitter:card",
"twitter:site",
"twitter:creator",
"twitter:title",
"twitter:description",
"twitter:image",
],
},
{
pattern: '<meta.*?{{KEY}}="(.*?)".*?>',
KEYS: ["charset"],
},
{
pattern: '<html.*?{{KEY}}="(.*?)".*?>',
KEYS: ["lang"],
},
{
pattern:
'<link.*?rel="{{KEY}}".*?href="(.*?)".*?>|<link.*?href="(.*?)".*?rel="{{KEY}}".*?>',
KEYS: ["icon", "canonical", "manifest", "fluid-icon"],
},
];