toml: fix alexcrichton test

pull/13654/head
Ned Palacios 2022-03-04 15:39:20 +08:00
parent b9c07e1324
commit 2260f82aae
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ fn to_alexcrichton(value ast.Value, array_type int) string {
// Normalization for json
mut json_text := json2.Any(value.text).json_str().to_upper().replace(' ',
'T')
typ := if json_text.ends_with('Z') || json_text.all_after('T').contains('-')
typ := if json_text.ends_with('Z"') || json_text.all_after('T').contains('-')
|| json_text.all_after('T').contains('+') {
'datetime'
} else {