We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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' for nil: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
\s
TIME
string.match?(Psych::ScalarScanner::TIME) # true date, time = *(string.split(/[ tT]/, 2)) # ["2023-12-30\t23:16:25"]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Happens because
\s
is used inTIME
regex, and space is used when splitting string into date and timeThe text was updated successfully, but these errors were encountered: