【rep2】PHPでつくった2ch viewer【part46】at SOFTWARE
【rep2】PHPでつくった2ch viewer【part46】 - 暇つぶし2ch85:82
09/05/06 06:01:56 bUVktzbN0
>>84
ちょっと修正漏れがありました。

lib/ShowThreadPc.php
function checkQuoteResNums

- $quote_res_nums_msg = $this->thread->getQuoteResNumsMsg($msg);
+ $quote_res_nums_msg = $this->thread->getQuoteResNumsMsg($msg,
+ "/{$this->anchor_regex['prefix']}({$this->anchor_regex['ranges']})/",
+ "/(?:^|{$this->anchor_regex['delimiter']})({$this->anchor_regex['a_num']})(?!{$this->anchor_regex['range_delimiter']})/"
+ );

lib/ThreadRead.php
function getQuoteResNumsMsg($msg,
$pattern_anchor='/(?:>|>)+ ?([1-9](?:[0-9\\- ,=.]|、)*)/',
- $pattern_num='/[1-9]\\d*/'
+ $pattern_num='/([1-9]\\d*)/'
)

- foreach ($matches[0] as $a_quote_res_num) {
- $quote_res_nums[] = $a_quote_res_num;
+ foreach ($matches[1] as $a_quote_res_num) {
+ $quote_res_nums[] = (int)mb_convert_kana($a_quote_res_num,"n");



次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch