Chore: script to move images from imgur to panoramax
This commit is contained in:
parent
6e335c91d4
commit
dcfa829e1a
3 changed files with 12 additions and 10 deletions
|
@ -88,7 +88,7 @@ export default class GenerateImageAnalysis extends Script {
|
|||
if (image === undefined) {
|
||||
return false
|
||||
}
|
||||
if (!image.match(/https:\/\/i\.imgur\.com\/[a-zA-Z0-9]+\.jpg/)) {
|
||||
if (!image.match(/https:\/\/i\.imgur\.com\/[a-zA-Z0-9]+(\.jpe?g)|(\.png)/)) {
|
||||
return false
|
||||
}
|
||||
const filename = image.replace(/[\/:.\-%]/g, "_") + ".json"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue