Fixed ohm symbol detection

We use lowercase matching so we have to match with lowercase omega.
This commit is contained in:
SET 2020-08-13 11:26:29 -03:00
parent 548981e27e
commit 50826a80c1
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,8 @@ PREFIX_GIGA = ["giga", "g"]
PREFIX_ALL = PREFIX_PICO + PREFIX_NANO + PREFIX_MICRO + PREFIX_MILLI + PREFIX_KILO + PREFIX_MEGA + PREFIX_GIGA
# Common methods of expressing component units
UNIT_R = ["r", "ohms", "ohm", u"Ω"]
# Note: we match lowercase string, so both: Ω and Ω become the lowercase omega
UNIT_R = ["r", "ohms", "ohm", u'\u03c9']
UNIT_C = ["farad", "f"]
UNIT_L = ["henry", "h"]