File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ module.exports = async ({github, context}) => {
3232 }
3333
3434 // Regex for finding images (simple variant) 
35- const REGEX_USER_CONTENT_IMAGE_LOOKUP = / \! \[ ( . * ) \] \( ( h t t p s : \/ \/ [ - a - z 0 - 9 ] + \. g i t h u b u s e r c o n t e n t \. c o m \/ \d + \/ [ - 0 - 9 a - f ] { 32 , 512 } \. ( j p g | g i f | p n g ) ) \) / gm;
36- const REGEX_ASSETS_IMAGE_LOCKUP = / \! \[ ( . * ) \] \( ( h t t p s : \/ \/ g i t h u b \. c o m \/ [ - \w \d ] + \/ [ - \w \d ] + \/ a s s e t s \/ \d + \/ [ \- 0 - 9 a - f ] { 32 , 512 } ) \) / gm;
35+ const REGEX_USER_CONTENT_IMAGE_LOOKUP = / \! \[ ( [ ^ \] ] * ) \] \( ( h t t p s : \/ \/ [ - a - z 0 - 9 ] + \. g i t h u b u s e r c o n t e n t \. c o m \/ \d + \/ [ - 0 - 9 a - f ] { 32 , 512 } \. ( j p g | g i f | p n g ) ) \) / gm;
36+ const REGEX_ASSETS_IMAGE_LOCKUP = / \! \[ ( [ ^ \] ] * ) \] \( ( h t t p s : \/ \/ g i t h u b \. c o m \/ [ - \w \d ] + \/ [ - \w \d ] + \/ a s s e t s \/ \d + \/ [ \- 0 - 9 a - f ] { 32 , 512 } ) \) / gm;
3737
3838 // Check if we found something
3939 let foundSimpleImages = REGEX_USER_CONTENT_IMAGE_LOOKUP . test ( initialBody )
You can’t perform that action at this time.
0 commit comments