Skip to content

Commit e76d1e8

Browse files
committed
Release v1.2.2
1 parent 68144d1 commit e76d1e8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/node/plugins/replacer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class Replacer {
3838
break;
3939
}
4040
link = link.replace('$' + i, match[i]);
41-
value = replaces !== undefined && replaces[i] !== undefined
41+
value = !!replaces?.[i]
4242
? value.replace('$' + i, replaces[i](match[i]))
4343
: value.replace('$' + i, match[i]);
4444
}

lib/node/plugins/transformers/trees.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ export const treesTransformer = Manager.create()
33
.setKey('tree')
44
.setCompactPatterns([
55
/\[[\s`#@]*\d+]\(https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/tree\/([\d\w.\-_\/]+)\)/g,
6-
/https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/tree\/([\d\w.\-_\/]+)/g
6+
/(?<!:")(?<=^|\s)https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/tree\/([\d\w.\-_\/]+)/g
77
]);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuepress-plugin-github-linkify",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "Fix display of GitHub links for Vuepress 2",
55
"author": {
66
"name": "Andrey Helldar",

0 commit comments

Comments
 (0)