summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--ext/date/date_parse.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a5439e9..4f91ecd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sat Nov 3 14:56:21 2012 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * ext/date/date_parse.c (parse_eu): should capture apostrophe too.
+
Sat Nov 3 14:46:15 2012 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_parse.c (date__parse): revised the tight parser.
diff --git a/ext/date/date_parse.c b/ext/date/date_parse.c
index f431252..1664452 100644
--- a/ext/date/date_parse.c
+++ b/ext/date/date_parse.c
@@ -802,7 +802,7 @@ parse_eu(VALUE str, VALUE hash)
FPW_COM FPT_COM
#endif
#ifndef TIGHT_PARSER
- "'?(\\d+)[^-\\d\\s]*"
+ "('?\\d+)[^-\\d\\s]*"
#else
"(\\d+)(?:(?:st|nd|rd|th)\\b)?"
#endif