https://bugs.kde.org/show_bug.cgi?id=446045
Nate Graham <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit| |https://invent.kde.org/plas | |ma/kdeplasma-addons/-/commi | |t/be3d15e2a91783979a03d9875 | |1c589383a1952f3 Resolution|--- |FIXED Status|ASSIGNED |RESOLVED Version| |6.9.0 Fixed/Implemented| | In| | --- Comment #4 from Nate Graham <[email protected]> --- Git commit be3d15e2a91783979a03d98751c589383a1952f3 by Nate Graham, on behalf of Alex Čižinský. Committed on 22/09/2026 at 02:22. Pushed by ngraham into branch 'master'. runners/converter: Rework query parsing Allow using currency units before the value (eg. `usd 10` or `$10 to gbp`). Units before value are allowed only for currency units, this is because otherwise there might be some ambiguous situations, (like `m21`: `21 meters` vs `1 meter squared`), also non-currency units are usually not put before their value. See bug 446045. Add `=`, `=>` and `->` as conversion delimiters; `->` was already used by libqalculate in the calculator runner, `=` and `=>` were added as other options. Add support for scientific notation (eg. `1.4e7 mm => km`). (QString::toDouble, which is used for parsing the number already supported scientific notation, so the only part that didn't was the query parsing code.) Fix incorrect handling of queries containing a conversion word multiple times (eg. `10 in in ft`). Add new tests for the new behavior. FIXED-IN: 6.9.0 M +19 -0 runners/converter/autotests/converterrunnertest.cpp M +66 -19 runners/converter/converterrunner.cpp M +3 -2 runners/converter/converterrunner.h https://invent.kde.org/plasma/kdeplasma-addons/-/commit/be3d15e2a91783979a03d98751c589383a1952f3 -- You are receiving this mail because: You are watching all bug changes.
