diff --git a/android/app/build.gradle b/android/app/build.gradle index f7f9469..1411390 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "ai.z.chat" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 21 - versionName "3.1.1" + versionCode 22 + versionName "3.1.2" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" aaptOptions { ignoreAssetsPattern = '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~' diff --git a/package.json b/package.json index efcec97..15178c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zai-chat", - "version": "3.1.1", + "version": "3.1.2", "description": "Z.AI Chat - Full stack AI chat powered by GLM Coding Plan", "main": "index.js", "scripts": { diff --git a/releases/Z.AI-Chat-v3.1.2-release.apk.idsig b/releases/Z.AI-Chat-v3.1.2-release.apk.idsig new file mode 100644 index 0000000..7fc6266 Binary files /dev/null and b/releases/Z.AI-Chat-v3.1.2-release.apk.idsig differ diff --git a/www/js/app.js b/www/js/app.js index 3b62770..bcd1dde 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -1441,6 +1441,7 @@ var deviceCurrentAppRegex = /\[DEVICE_CURRENT_APP\]/gi; var hermesInstallRegex = /\[HERMES_INSTALL\]/gi; var hermesExecRegex = /\[HERMES_EXEC\s+([^\]]+)\]/gi; + var codeBlockFileRegex = /```(\w+)\s*\n([\s\S]*?)```/gi; var match; while ((match = createActionRegex.exec(content)) !== null) {