diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-07-09 07:21:27 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-02-25 19:52:31 +0900 |
commit | b5c2a0840f4dd8b44e0f82cda7a7f225d0a816ef (patch) | |
tree | 3b8548b45120c8092d903660a44d8823b637d456 /ext | |
parent | 1758eade579c91f9ad000943994fccf30c7bf8a0 (diff) | |
download | ruby-b5c2a0840f4dd8b44e0f82cda7a7f225d0a816ef.tar.gz |
[ruby/date] Anchor at beginning of numbers
https://hackerone.com/reports/1254844
https://github.com/ruby/date/commit/2f7814cc22
Diffstat (limited to 'ext')
-rw-r--r-- | ext/date/date_parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/date_parse.c b/ext/date/date_parse.c index 9511bedf47..95274d5baa 100644 --- a/ext/date/date_parse.c +++ b/ext/date/date_parse.c @@ -980,7 +980,7 @@ parse_iso(VALUE str, VALUE hash) { static const char pat_source[] = #ifndef TIGHT_PARSER - "('?[-+]?\\d+)-(\\d+)-('?-?\\d+)" + "('?[-+]?" NUMBER "+)-(\\d+)-('?-?\\d+)" #else BOS FPW_COM FPT_COM |