From a2cbf94454f591cf621009d5696f39c7f938add0 Mon Sep 17 00:00:00 2001 From: Naveen Singh Date: Tue, 1 Oct 2024 20:12:26 +0530 Subject: [PATCH] Update image-minimizer.js --- .github/workflows/image-minimizer.js | 2 +- crash.log | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 crash.log diff --git a/.github/workflows/image-minimizer.js b/.github/workflows/image-minimizer.js index 6ec67b57..f81a49e1 100644 --- a/.github/workflows/image-minimizer.js +++ b/.github/workflows/image-minimizer.js @@ -34,7 +34,7 @@ module.exports = async ({github, context}) => { // Regex for finding images (simple variant) ![ALT_TEXT](https://*.githubusercontent.com//.) 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) diff --git a/crash.log b/crash.log new file mode 100644 index 00000000..5c5dc343 --- /dev/null +++ b/crash.log @@ -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.(SourceFile:14) + at o2.f.W(SourceFile:8) + at u8.y.v0(SourceFile:6) + at fa.l.(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