• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

blogger


コミットメタ情報

リビジョンb342c1e787bf0d86aea9c24b5f2aebdb5692498a (tree)
日時2015-03-25 02:35:54
作者umorigu <umorigu@gmai...>
コミッターumorigu

ログメッセージ

BugTrack2/358 Improve note regex for better PHP compatibility

PHP5.3 (and others) sometimes crash with long note body.
So we reduce regex computational complexity by using '(('
Positive assertion and Once-only subpattern '(?='.

変更サマリ

差分

--- a/lib/make_link.php
+++ b/lib/make_link.php
@@ -287,7 +287,7 @@ class Link_note extends Link
287287 {
288288 return <<<EOD
289289 \(\(
290- ((?:(?R)|(?!\)\)).)*) # (1) note body
290+ ((?>(?=\(\()(?R)|(?!\)\)).)*) # (1) note body
291291 \)\)
292292 EOD;
293293 }