alfred-converter icon indicating copy to clipboard operation
alfred-converter copied to clipboard

Some HEX numbers are not recognized

Open YCHX opened this issue 3 years ago • 1 comments

Some numbers such as 0x1f, 0x2f,0x2F that begin with a number followed by F will not be recognized as a hex number. Here is the results:
Xnip-2021-05-21_14-14-58 Xnip-2021-05-21_14-15-06 Xnip-2021-05-21_14-15-16

YCHX avatar May 21 '21 05:05 YCHX

It looks like the unit converter is a bit too eager indeed. I guess the entire unit conversion should be disabled for non-base-10 numbers. That's going to take a bit of work though :)

wolph avatar May 21 '21 22:05 wolph

I've fixed it so the base conversion (hex, octal and binary) conversions happen before the unit parsing happens. So this should always work :)

wolph avatar Oct 19 '22 23:10 wolph