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/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