mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 18:13:58 +02:00
merge revision(s) 44086,44126: [Backport #9221]
* ext/date/date_parse.c (parse_time): unset case-insensitive flag for [:alpha:], which already implies both cases, to get rid of backtrack explosion. [ruby-core:58876] [Bug #9221] * ext/date/date_strptime.c (date__strptime_internal): unset case-insensitive flag for [:alpha:], which already implies both cases, to get rid of backtrack explosion. [ruby-core:58984] [Bug #9221] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@44306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
11fe8c9715
commit
ef61d714f3
4 changed files with 20 additions and 7 deletions
|
@ -765,9 +765,9 @@ parse_time(VALUE str, VALUE hash)
|
|||
"("
|
||||
"(?:gmt|utc?)?[-+]\\d+(?:[,.:]\\d+(?::\\d+)?)?"
|
||||
"|"
|
||||
"[[:alpha:].\\s]+(?:standard|daylight)\\stime\\b"
|
||||
"(?-i:[[:alpha:].\\s]+)(?:standard|daylight)\\stime\\b"
|
||||
"|"
|
||||
"[[:alpha:]]+(?:\\sdst)?\\b"
|
||||
"(?-i:[[:alpha:]]+)(?:\\sdst)?\\b"
|
||||
")"
|
||||
")?";
|
||||
static VALUE pat = Qnil;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue