From adf85bf2df20829723b089b6ec61e1a3e774b3cb Mon Sep 17 00:00:00 2001 From: Angel Ortega Date: Tue, 28 Apr 2009 10:54:08 +0200 Subject: [PATCH] mp.word_count() uses a special regex counting non-spaces (so that 'words' as numbers are also counted). --- mp_writing.mpsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mp_writing.mpsl b/mp_writing.mpsl index 12f7d60..907424b 100644 --- a/mp_writing.mpsl +++ b/mp_writing.mpsl @@ -90,7 +90,7 @@ sub mp.word_count(doc) local w = 0; foreach (l, mp.get_active_area(doc)) - w += size(mp.split_by_words(l)); + w += size(mp.split_by_words(l, "/[^ \t]+/")); return w; } -- 2.11.4.GIT