mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-16 11:08:14 +02:00
added negative number test
This commit is contained in:
1 parent
2e8e835a68
commit
edd2eaae88
2 files changed
+3
-3
No files matched your search
@@ -118,7 +118,7 @@ func normalizeMultipartValue(raw string) any {
|
||||
case "false":
|
||||
return false
|
||||
default:
|
||||
if raw[0] >= '0' && raw[0] <= '9' {
|
||||
if raw[0] == '-' || (raw[0] >= '0' && raw[0] <= '9') {
|
||||
if v, err := cast.ToFloat64E(raw); err == nil {
|
||||
return v
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user