Skip to content

Commit

Permalink
* ext/date/date_parse.c (parse_eu): should capture apostrophe too.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
tadf committed Nov 3, 2012
1 parent d55aa2b commit 0ae9052
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Sat Nov 3 14:56:21 2012 Tadayoshi Funaba <[email protected]>

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

Sat Nov 3 14:46:15 2012 Tadayoshi Funaba <[email protected]>

* ext/date/date_parse.c (date__parse): revised the tight parser.
Expand Down
2 changes: 1 addition & 1 deletion ext/date/date_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ae9052

Please sign in to comment.