From 8e27d48bcd573bccbb2a3cd1b1ad55c094351916 Mon Sep 17 00:00:00 2001 From: overtrue Date: Fri, 27 Nov 2015 11:36:16 +0800 Subject: [PATCH] =?UTF-8?q?[Bugfix]=20=E5=BD=93=E6=A0=87=E9=A2=98=E5=B8=A6?= =?UTF-8?q?=E6=9C=89=E7=B1=BB=E4=BC=BCxxx.js=E6=96=87=E4=BB=B6=E5=90=8D?= =?UTF-8?q?=E6=97=B6=E7=BB=93=E5=B0=BE=E4=BC=9A=E8=A2=AB=E8=BD=AC=E5=A4=A7?= =?UTF-8?q?=E5=86=99JS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AutoCorrect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AutoCorrect.php b/AutoCorrect.php index 344b09a..ca65aa2 100644 --- a/AutoCorrect.php +++ b/AutoCorrect.php @@ -30,7 +30,7 @@ public function auto_space($content) public function auto_correct($content) { foreach ($this->dicts as $from => $to) { - $content = preg_replace("/\b$from\b/i", $to, $content); + $content = preg_replace("/(?