From 3bb3a42e7570ad45867e6b85102801e820358e2c Mon Sep 17 00:00:00 2001 From: shish Date: Sun, 20 Apr 2008 15:13:15 +0000 Subject: [PATCH] bbcode strikethrough git-svn-id: file:///home/shish/svn/shimmie2/trunk@829 7f39781d-f577-437e-ae19-be835c7a54ca --- ext/bbcode/main.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/bbcode/main.php b/ext/bbcode/main.php index f5c9a5c0..33165a39 100644 --- a/ext/bbcode/main.php +++ b/ext/bbcode/main.php @@ -12,6 +12,7 @@ class BBCode extends Extension { $text = preg_replace("/\[b\](.*?)\[\/b\]/s", "\\1", $text); $text = preg_replace("/\[i\](.*?)\[\/i\]/s", "\\1", $text); $text = preg_replace("/\[u\](.*?)\[\/u\]/s", "\\1", $text); + $text = preg_replace("/\[s\](.*?)\[\/s\]/s", "\\1", $text); $text = preg_replace("/\[code\](.*?)\[\/code\]/s", "
\\1
", $text); $text = preg_replace("/>>(\d+)/s", ">>\\1", $text); $text = preg_replace("/>>([^\d].+)/", "
\\1
", $text); @@ -38,6 +39,7 @@ class BBCode extends Extension { $text = preg_replace("/\[b\](.*?)\[\/b\]/s", "\\1", $text); $text = preg_replace("/\[i\](.*?)\[\/i\]/s", "\\1", $text); $text = preg_replace("/\[u\](.*?)\[\/u\]/s", "\\1", $text); + $text = preg_replace("/\[s\](.*?)\[\/s\]/s", "\\1", $text); $text = preg_replace("/\[code\](.*?)\[\/code\]/s", "\\1", $text); $text = preg_replace("/\[url=(.*?)\](.*?)\[\/url\]/s", "\\2", $text); $text = preg_replace("/\[url\](.*?)\[\/url\]/s", "\\1", $text);