mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 05:01:13 +08:00

As part of #23816, which sought to strip out thousand separators, we also accidentally strip out signs. This is making it impossible to disable some settings which require a -1 to disable. Instead of stripping non-digits, strip anything that isn't a sign or a digit.