File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ export const treesTransformer = Manager.create()
33 . setKey ( 'tree' )
44 . setCompactPatterns ( [
55 / \[ [ \s ` # @ ] * \d + ] \( h t t p s : \/ \/ g i t h u b \. c o m \/ ( [ \w \d \- _ ] + ) \/ ( [ \w \d \- _ ] + ) \/ t r e e \/ ( [ \d \w . \- _ \/ ] + ) \) / g,
6- / h t t p s : \/ \/ g i t h u b \. c o m \/ ( [ \w \d \- _ ] + ) \/ ( [ \w \d \- _ ] + ) \/ t r e e \/ ( [ \d \w . \- _ \/ ] + ) / g
6+ / (?< ! : " ) (?< = ^ | \s ) h t t p s : \/ \/ g i t h u b \. c o m \/ ( [ \w \d \- _ ] + ) \/ ( [ \w \d \- _ ] + ) \/ t r e e \/ ( [ \d \w . \- _ \/ ] + ) / g
77] ) ;
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments