[gnumeric] number-match: fix bogus time match for "3.a"
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] number-match: fix bogus time match for "3.a"
- Date: Fri, 11 Dec 2020 01:58:18 +0000 (UTC)
commit d38af0959300bf98277ef99afaa45bbd12991468
Author: Morten Welinder <terra gnome org>
Date: Thu Dec 10 20:57:30 2020 -0500
number-match: fix bogus time match for "3.a"
A stray dot was left in a regular expression.
NEWS | 1 +
src/number-match.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/NEWS b/NEWS
index 8ef828050..c5199ccb2 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,7 @@ Morten:
* Fix cvs separator guessing problem with quotes. [#537]
* Improve handling of expressions in csv files.
* Plug ssconvert leak. [#546]
+ * Fix bogus time match for "3.a". [#545]
--------------------------------------------------------------------------
Gnumeric 1.12.48
diff --git a/src/number-match.c b/src/number-match.c
index 4b1554960..dfc2fc832 100644
--- a/src/number-match.c
+++ b/src/number-match.c
@@ -301,7 +301,7 @@ datetime_locale_setup (char const *lc_time)
/* ^(((\d+):)?(\d+):)?(\d+.\d*)\s*$ */
s = g_strconcat ("^(((\\d+):)?(\\d+):)?(\\d+",
p_decimal->str,
- ".\\d*)\\s*$",
+ "\\d*)\\s*$",
NULL);
datetime_locale_setup1 (&datetime_locale.re_hhmmssds, s);
g_free (s);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]