Skip to content

Commit

Permalink
Release v1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Mar 2, 2023
1 parent 68144d1 commit e76d1e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/node/plugins/replacer.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class Replacer {
break;
}
link = link.replace('$' + i, match[i]);
value = replaces !== undefined && replaces[i] !== undefined
value = !!replaces?.[i]
? value.replace('$' + i, replaces[i](match[i]))
: value.replace('$' + i, match[i]);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/node/plugins/transformers/trees.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ export const treesTransformer = Manager.create()
.setKey('tree')
.setCompactPatterns([
/\[[\s`#@]*\d+]\(https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/tree\/([\d\w.\-_\/]+)\)/g,
/https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/tree\/([\d\w.\-_\/]+)/g
/(?<!:")(?<=^|\s)https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/tree\/([\d\w.\-_\/]+)/g
]);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vuepress-plugin-github-linkify",
"version": "1.2.1",
"version": "1.2.2",
"description": "Fix display of GitHub links for Vuepress 2",
"author": {
"name": "Andrey Helldar",
Expand Down

0 comments on commit e76d1e8

Please sign in to comment.