From: shevegen@... Date: 2017-09-28T19:19:00+00:00 Subject: [ruby-core:83052] [Ruby trunk Bug#13947] Incorreсt string parsing in Date.parse Issue #13947 has been updated by shevegen (Robert A. Heiler). On my system ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux] I get: Date.parse('Some random string') # ArgumentError: invalid date Date.parse('Repellendus Sint sunt quae molestiae dolor illo inventore ea') # => # So I assume that the first has changed. I have no idea why the latter works though - I agree. That is weird, unless it is some hidden time info ... but to my untrained eyes, it looks like an inconsistency. :D Given that the behaviour between 2.3.3 and 2.4.x is different in the first case, I assume that this was not deliberate, so, yep probably a bug. ---------------------------------------- Bug #13947: Incorre��t string parsing in Date.parse https://bugs.ruby-lang.org/issues/13947#change-66978 * Author: gregory (Gregory Tereshko) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: 2.3.3 * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- There is no exception when parsing random lorem ipsum string to date. But if parse any another string everithing works smoothly. The income string is - "Repellendus Sint sunt quae molestiae dolor illo inventore ea" ![](https://sun9-1.userapi.com/c840535/v840535283/de9b/CsCkuTbmsxA.jpg) ![](https://pp.userapi.com/c841625/v841625764/240a3/oodloze9VqY.jpg) **UPD:** It reacts on "sun" in that string -- https://bugs.ruby-lang.org/ Unsubscribe: