mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
extractNumberFromString() stripped the minus sign together with other non-numeric characters, so negative values were silently converted to their positive counterparts (e.g. '-999.99' was parsed as 999.99). Keep the minus sign in the character allow-list so NumberParser can correctly parse negative values. This helper is used by the manual data provider, where a user-configured selector can legitimately point at a negative number. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>pull/7377/head
3 changed files with 23 additions and 2 deletions
Loading…
Reference in new issue