From 5200054dc2777fcf72022744867dd27007c6b79d Mon Sep 17 00:00:00 2001 From: Nadav Kavalerchik Date: Sun, 24 Jan 2016 00:47:13 +0200 Subject: [PATCH] MDL-52567 Core: remove quotation marks, for proper word count --- lib/moodlelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index e9598eb71ca..af0419a556c 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -7532,7 +7532,7 @@ function count_words($string) { // Replace underscores (which are classed as word characters) with spaces. $string = preg_replace('/_/u', ' ', $string); // Remove any characters that shouldn't be treated as word boundaries. - $string = preg_replace('/[\'’-]/u', '', $string); + $string = preg_replace('/[\'"’-]/u', '', $string); // Remove dots and commas from within numbers only. $string = preg_replace('/([0-9])[.,]([0-9])/u', '$1$2', $string);