Fix unit detection for negative values

Change the unit detection regular expression to properly recognize negative and plus-prefixed values such as -100% and +100%