From 6ec18685b45a9ffeb8d2bc623a979bae4367cee9 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Sat, 15 Jun 2024 02:04:12 +0900 Subject: [PATCH 1/2] Improve automark.ts code to handle more symbols --- src/ts/plugins/automark.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ts/plugins/automark.ts b/src/ts/plugins/automark.ts index 6fea365b..ce119d46 100644 --- a/src/ts/plugins/automark.ts +++ b/src/ts/plugins/automark.ts @@ -1,5 +1,7 @@ const excludesDat = ['<','>','{','}','[',']','(',')','-',':',';','…','—','–','_','*','+','/','\\','|','!','?','.',',',' '] +const symbols = ['<','>','{','}','[',']','(',')','-',':',';','…','—','–','_','*','+','/','\\','|','!','?','.',',',' ', '\n', '。', '、', '!', '?', ',', ';', ':', '(', ')', '【', '】', '「', '」', '『', '』', '“', '”', '‘', '’', '《', '》', '〈', '〉', '‹', '›', '«', '»', '‟', '„'] + const selfClosingTags = [ 'br','hr','img','input','meta','link','base','area','col','command','embed','keygen','param','source','track','wbr', //self closing tags defined by HTML5 @@ -123,6 +125,10 @@ export function risuFormater(dat:string){ //spaces for detection line = ' ' + line + ' ' + const isNotCharacter = (t:string) => { + return symbols.includes(t) + } + for(let j=0;j Date: Sat, 15 Jun 2024 02:05:28 +0900 Subject: [PATCH 2/2] chore: Update app version to 114.4.0 --- android/app/build.gradle | 2 +- android/app/release/output-metadata.json | 2 +- src-tauri/tauri.conf.json | 2 +- src/ts/storage/database.ts | 2 +- version.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index fae0a30a..a27c323e 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -8,7 +8,7 @@ android { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 2 - versionName "114.3.0" + versionName "114.4.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" aaptOptions { // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. diff --git a/android/app/release/output-metadata.json b/android/app/release/output-metadata.json index a330869c..6dc38819 100644 --- a/android/app/release/output-metadata.json +++ b/android/app/release/output-metadata.json @@ -12,7 +12,7 @@ "filters": [], "attributes": [], "versionCode": 2, - "versionName": "114.3.0", + "versionName": "114.4.0", "outputFile": "app-release.apk" } ], diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 09bc67af..b6a2dd98 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "RisuAI", - "version": "114.3.0" + "version": "114.4.0" }, "tauri": { "allowlist": { diff --git a/src/ts/storage/database.ts b/src/ts/storage/database.ts index dfdcd803..bbe625b6 100644 --- a/src/ts/storage/database.ts +++ b/src/ts/storage/database.ts @@ -14,7 +14,7 @@ import type { OobaChatCompletionRequestParams } from '../model/ooba'; export const DataBase = writable({} as any as Database) export const loadedStore = writable(false) -export let appVer = "114.3.0" +export let appVer = "114.4.0" export let webAppSubVer = '' export function setDatabase(data:Database){ diff --git a/version.json b/version.json index d21d32f8..d2eb6bd1 100644 --- a/version.json +++ b/version.json @@ -1 +1 @@ -{"version":"114.3.0"} \ No newline at end of file +{"version":"114.4.0"} \ No newline at end of file