* 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:
parent
d55aa2bf67
commit
0ae90522a6
@ -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>
|
Sat Nov 3 14:46:15 2012 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
* ext/date/date_parse.c (date__parse): revised the tight parser.
|
* ext/date/date_parse.c (date__parse): revised the tight parser.
|
||||||
|
@ -802,7 +802,7 @@ parse_eu(VALUE str, VALUE hash)
|
|||||||
FPW_COM FPT_COM
|
FPW_COM FPT_COM
|
||||||
#endif
|
#endif
|
||||||
#ifndef TIGHT_PARSER
|
#ifndef TIGHT_PARSER
|
||||||
"'?(\\d+)[^-\\d\\s]*"
|
"('?\\d+)[^-\\d\\s]*"
|
||||||
#else
|
#else
|
||||||
"(\\d+)(?:(?:st|nd|rd|th)\\b)?"
|
"(\\d+)(?:(?:st|nd|rd|th)\\b)?"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user