Update image-minimizer.js

This commit is contained in:
Naveen Singh
2024-10-01 20:12:26 +05:30
parent 89edf42f1d
commit a2cbf94454
2 changed files with 23 additions and 1 deletions

View File

@@ -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)

22
crash.log Normal file
View File

@@ -0,0 +1,22 @@
FATAL EXCEPTION: main
Process: org.fossify.keyboard, PID: 3947
java.lang.IllegalStateException: SharedPreferences in credential encrypted storage are not available until after user (id 0) is unlocked
at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:605)
at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:588)
at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:222)
at x9.b.<init>(SourceFile:14)
at o2.f.W(SourceFile:8)
at u8.y.v0(SourceFile:6)
at fa.l.<init>(SourceFile:19)
at org.fossify.keyboard.views.MyKeyboardView.setupEmojiAdapter(SourceFile:391)
at org.fossify.keyboard.views.MyKeyboardView.c(SourceFile:1)
at g.m0.run(SourceFile:49)
at android.os.Handler.handleCallback(Handler.java:959)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8497)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:557)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)
2024