wolph / alfred-converter

Alfred unit converter is a smart calculator for Alfred with support for unit conversions to make it a bit comparable to the Google Calculator and Wolfram Alpha.
93 stars 15 forks source link

Subtraction of floating point numbers doesn't work without spaces #29

Closed JeffreyCA closed 3 years ago

JeffreyCA commented 3 years ago

This doesn't work for example. It gives me a bunch of conversions from inches.

100-24.5
100.5-24.5

These all work as expected:

100- 24.5
100 -24.5
100 - 24.5
24.5-100
100+24.5
100*24.5
100/24.5
wolph commented 3 years ago

Looks like the inch conversion is a bit too trigger happy. I'll put it on my todo list but I can't start on it until apple repairs my laptop so it can take a few weeks :)

JeffreyCA commented 3 years ago

Hey, was wondering if you had a chance to look at this issue (assuming your laptop's fixed now 😅) ?

wolph commented 3 years ago

Yes... I got the laptop back but I've just been busy ;)

I've fixed the bug and it should work without issues again

JeffreyCA commented 3 years ago

Awesome, thank you so much! Can confirm it works now.

wolph commented 3 years ago

I've also added a few other improvements such as blacklists and fixed a bug with split units so you might want to update again.

This will probably be the last update for a little while