mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-24 21:47:59 +01:00
Update image-minimizer.js
This commit is contained in:
parent
4e479e5309
commit
6a9cc42979
1 changed files with 1 additions and 1 deletions
2
.github/workflows/image-minimizer.js
vendored
2
.github/workflows/image-minimizer.js
vendored
|
@ -34,7 +34,7 @@ module.exports = async ({github, context}) => {
|
|||
|
||||
// Regex for finding images (simple variant) ![ALT_TEXT](https://*.githubusercontent.com/<number>/<variousHexStringsAnd->.<fileExtension>)
|
||||
const REGEX_USER_CONTENT_IMAGE_LOOKUP = /\!\[(.*)\]\((https:\/\/[-a-z0-9]+\.githubusercontent\.com\/\d+\/[-0-9a-f]{32,512}\.(jpg|gif|png))\)/gm;
|
||||
const REGEX_ASSETS_IMAGE_LOCKUP = /\!\[(.*)\]\((https:\/\/github\.com\/[-\w\d]+\/[-\w\d]+\/assets\/\d+\/[\-0-9a-f]{32,512})\)/gm;
|
||||
const REGEX_ASSETS_IMAGE_LOCKUP = /\!\[(.*)\]\((https:\/\/github\.com\/user-attachments\/assets\/[\-0-9a-f]{36,})\)/gm;
|
||||
|
||||
// Check if we found something
|
||||
let foundSimpleImages = REGEX_USER_CONTENT_IMAGE_LOOKUP.test(initialBody)
|
||||
|
|
Loading…
Reference in a new issue