mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-07 01:04:26 +01:00
fix: handle empty case
This commit is contained in:
@@ -878,7 +878,10 @@ fn parse_numeric_str(text: &str) -> Result<(OwnedValueType, &str), ()> {
|
||||
let text = text.trim();
|
||||
let bytes = text.as_bytes();
|
||||
|
||||
if matches!(bytes, [b'e', ..] | [b'E', ..] | [b'.', b'e' | b'E', ..]) {
|
||||
if matches!(
|
||||
bytes,
|
||||
[] | [b'e', ..] | [b'E', ..] | [b'.', b'e' | b'E', ..]
|
||||
) {
|
||||
return Err(());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user