1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/date/date_parse.c (parse_eu): should capture apostrophe too.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tadf 2012-11-03 05:59:08 +00:00
parent d55aa2bf67
commit 0ae90522a6
2 changed files with 5 additions and 1 deletions

View file

@ -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.

View file

@ -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