File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -36,16 +36,23 @@ function processIssues(issues) {
3636
3737 // Regular expressions
3838 const linkRegex = / # # # L i n k t o p r o j e c t r e p o s i t o r y \/ s o u r c e s ( [ \s \S ] * ?) # # # / ;
39- const imageRegex = / # # # I m a g e ! \[ .* ?\] \( ( .* ?) \) / ;
39+ const imageRegex = / # # # I m a g e \s * ! \[ .* ?\] \( ( .* ?) \) / ;
40+ const iamgeHTMLRegex = / < i m g [ ^ > ] * s r c = " ( .* ?) " / ;
41+
4042 const descriptionRegex = / # # # P r o j e c t S u m m a r y ( [ \s \S ] * ?) # # # / ;
4143
4244 const titleRegex = / # # # T i t l e ( [ \s \S ] * ?) # # # / ;
4345
4446 // Extract image link
4547 const imageMatch = imageRegex . exec ( body ) ;
48+ const imageHTMLMatch = iamgeHTMLRegex . exec ( body ) ;
49+
4650 if ( imageMatch ) {
4751 imageLink = imageMatch [ 1 ] . trim ( ) ; // The URL is in the second capturing
4852 }
53+ else if ( imageHTMLMatch ) {
54+ imageLink = imageHTMLMatch [ 1 ] . trim ( ) ;
55+ }
4956
5057 // Extract info link
5158 const linkMatch = linkRegex . exec ( body ) ;
You can’t perform that action at this time.
0 commit comments