1
0
mirror of https://github.com/Daichimarukana/uwuzu.git synced 2026-06-04 19:14:41 +00:00

uwuzu v1.5.2 Combeny

This commit is contained in:
Daichimarukana
2025-05-04 17:07:27 +09:00
parent 4d7b6bd9ce
commit 04849c81aa
4 changed files with 13 additions and 14 deletions
+5 -4
View File
@@ -141,21 +141,21 @@ function formatMarkdown(text) {
// 複数行インラインコード(バッククォート3つ)を検出して、<pre><code>で囲む // 複数行インラインコード(バッククォート3つ)を検出して、<pre><code>で囲む
text = text.replace(/```([\s\S]+?)```/g, (match, code) => { text = text.replace(/```([\s\S]+?)```/g, (match, code) => {
const key = `PLACEHOLDER_${placeholderIndex++}`; const key = `\u2063{{PLACEHOLDER${placeholderIndex++}}}\u2063`;
placeholders[key] = `<pre class="codeblock"><code>${code.replace(/^\s*\n/, '')}</code></pre>`; placeholders[key] = `<pre class="codeblock"><code>${code.replace(/^\s*\n/, '')}</code></pre>`;
return key; return key;
}); });
// コードブロックの退避 // コードブロックの退避
text = text.replace(/`([^`\n]+)`/g, (_, code) => { text = text.replace(/`([^`\n]+)`/g, (_, code) => {
const key = `PLACEHOLDER_${placeholderIndex++}`; const key = `\u2063{{PLACEHOLDER${placeholderIndex++}}}\u2063`;
placeholders[key] = `<span class="inline">${code}</span>`; placeholders[key] = `<span class="inline">${code}</span>`;
return key; return key;
}); });
// コロンで囲まれた絵文字をプレースホルダーに退避 // コロンで囲まれた絵文字をプレースホルダーに退避
text = text.replace(/:([a-zA-Z0-9_]+):/g, (match) => { text = text.replace(/:([a-zA-Z0-9_]+):/g, (match) => {
const key = `PLACEHOLDER_${placeholderIndex++}`; const key = `\u2063{{PLACEHOLDER${placeholderIndex++}}}\u2063`;
placeholders[key] = match; // 元の文字列を保存 placeholders[key] = match; // 元の文字列を保存
return key; return key;
}); });
@@ -192,7 +192,8 @@ function formatMarkdown(text) {
// プレースホルダーを戻す // プレースホルダーを戻す
let final = lines.join(''); let final = lines.join('');
for (const key in placeholders) { for (const key in placeholders) {
final = final.replace(key, placeholders[key]); const escapedKey = key.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
final = final.replace(new RegExp(escapedKey, 'g'), placeholders[key]);
} }
return final; return final;
+1 -1
View File
@@ -1,4 +1,4 @@
uwuzu uwuzu
1.5.1 1.5.2
2025/05/04 2025/05/04
daichimarukana,putonfps daichimarukana,putonfps
+4
View File
@@ -1,6 +1,10 @@
## リリースノートだぜぇぇぇぇぇぇい!!!!!!! ## リリースノートだぜぇぇぇぇぇぇい!!!!!!!
ここにはuwuzuの更新情報を載せてくぜぇ~!(いやまてテンションおかしいだろ...) ここにはuwuzuの更新情報を載せてくぜぇ~!(いやまてテンションおかしいだろ...)
## Version 1.5.2 (Combeny)
2025/05/04
fix: ユーズのMarkdownがもっと上手く働かないどころか崩壊してしまう問題を修正しました!
## Version 1.5.1 (Combeny) ## Version 1.5.1 (Combeny)
2025/05/04 2025/05/04
fix: ユーズのMarkdownが上手く働かない問題を修正しました! fix: ユーズのMarkdownが上手く働かない問題を修正しました!
+2 -8
View File
@@ -1,18 +1,12 @@
{ {
"software": "uwuzu", "software": "uwuzu",
"version": "1.5.1", "version": "1.5.2",
"release_date": "2025/05/04", "release_date": "2025/05/04",
"release_notes": "このアップデートではタイムラインが正常に表示されない問題やオブジェクトストレージプラグイン有効時に特定の条件下で正常に使用できない問題など、いくつかのバグ修正が行われています。詳細はリリースノートをご覧ください。", "release_notes": "このアップデートではユーズのMarkdown解析が正常に行われないバグの修正が行われています。詳細はリリースノートをご覧ください。",
"notices": "アップデート前にデータのバックアップを行うことをおすすめします!", "notices": "アップデート前にデータのバックアップを行うことをおすすめします!",
"files": { "files": {
"overwrite": [ "overwrite": [
"/admin/addadmin.php",
"/admin/index.php",
"/admin/setup_db_php.php",
"/admin/setup_uwuzu_db.php",
"/admin/success.php",
"/js/view_function.js", "/js/view_function.js",
"/new.php",
"/server/uwuzuabout.txt", "/server/uwuzuabout.txt",
"/server/uwuzuinfo.txt", "/server/uwuzuinfo.txt",