[gnumeric] number-match: fix matching of "Sep 23 2008"
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnumeric] number-match: fix matching of "Sep 23 2008"
- Date: Fri, 27 Nov 2009 14:41:21 +0000 (UTC)
commit 450363c539fd021f983b4cd0c4effde528d3d650
Author: Morten Welinder <terra gnome org>
Date: Fri Nov 27 09:40:56 2009 -0500
number-match: fix matching of "Sep 23 2008"
NEWS | 1 +
src/number-match.c | 3 ++-
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index b7473fc..25e7a0a 100644
--- a/NEWS
+++ b/NEWS
@@ -31,6 +31,7 @@ Morten:
* Fix solver undo/redo.
* Make solver parameter changes always persist. [#440664]
* Re-implement MPS importer.
+ * Fix matching of "Sep 23 2008". [#603116]
--------------------------------------------------------------------------
Gnumeric 1.9.15
diff --git a/src/number-match.c b/src/number-match.c
index ce5d4b1..44dcb22 100644
--- a/src/number-match.c
+++ b/src/number-match.c
@@ -194,6 +194,7 @@ datetime_locale_setup (char const *lc_time)
* "Dec 1, 2000"
* "Dec/1/04"
* "December 1, 2000"
+ * "December 1 2000"
* "Dec-1-2000"
* "Dec 1"
* "Dec/1"
@@ -204,7 +205,7 @@ datetime_locale_setup (char const *lc_time)
p_MMMM->str,
"|",
p_MMM->str,
- ")(-|/|\\s)(\\d+)((,\\s+|-|/)(\\d+))?\\b",
+ ")(-|/|\\s)(\\d+)((,?\\s+|-|/)(\\d+))?\\b",
NULL);
datetime_locale_setup1 (&datetime_locale.re_MMMMddyyyy, s);
g_free (s);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]