string="2023-12-30\t23:16:25"Psych.dump(string)/.rbenv/versions/3.2.2/lib/ruby/3.2.0/psych/scalar_scanner.rb:120:in`parse_time': undefined method `match' fornil:NilClass(NoMethodError)md=time.match(/(\d+:\d+:\d+)(?:\.(\d*))?\s*(Z|[-+]\d+(:\d\d)?)?/)
Happens because \s is used in TIME regex, and space is used when splitting string into date and time
string.match?(Psych::ScalarScanner::TIME)# truedate,time= *(string.split(/[ tT]/,2))# ["2023-12-30\t23:16:25"]
Happens because
\sis used inTIMEregex, and space is used when splitting string into date and time