Fixed ohm symbol detection
We use lowercase matching so we have to match with lowercase omega.
This commit is contained in:
parent
548981e27e
commit
50826a80c1
|
|
@ -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"]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue