Note attributes's numeric types seem to accept an invalid double negative number value

Steps to reproduce

Start adding a new attribute, for example, through the command palette.
Use any name for this attribute. Then switch the attribute type to number.
Try entering a value. For this report, it would be something like --10.

Did you follow the troubleshooting guide? [Y/N]

Yes

Expected result

A warning or rejecting the second minus sign.

Actual result

The software UI accepts the value with no warnings (red borders or tooltips) or direct suppression.
When switching to source mode, the attribute appears with no value.

Environment

SYSTEM INFO:
Obsidian version: v1.8.10
Installer version: v1.8.10
Operating system: Windows 10 Pro 10.0.19045
Login status: not logged in
Language: zh
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

I don’t understand where you are adding this or what you mean by attribute (the command palette can’t be added to in the command palette itself).

Could you share a screenshot or two? Thanks!

Sorry, I mean is the open command palette - Add file property.

I’m still unclear on what’s happening.

Source mode | Live Preview | Reading view

CleanShot 2025-05-04 at 19.40.05

screenrecording