!chttの改行バグを修正 #38

Merged
stat2 merged 2 commits from konkon-fox/delightly-v2fork:main into main 2023-10-28 02:16:59 +09:00
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ function applyChttCommand(
if(strpos($_POST['comment'], '!chtt:') === false) {
return;
}
if(!preg_match('/\!chtt:(.+?)((?=\<br\>)|$)/', $_POST['comment'], $commandMatches)) {
if(!preg_match('/\!chtt:(.*?)((?=\<br\>)|$)/', $_POST['comment'], $commandMatches)) {
return;
}
// コマンド文字列から新スレタイを抽出