diff --git a/common/Units.cs b/common/Units.cs index 91d515b..88e4194 100644 --- a/common/Units.cs +++ b/common/Units.cs @@ -498,7 +498,9 @@ public override string Name strip |= SiPrefix.One; if (!@base.Identifier.Contains(strip.Identifier)) return null; - return Units.ParseUnit(@base.Identifier.Replace(strip.Identifier, string.Empty)) * value; + return Units.ParseUnit(strip.Identifier.Length == 0 + ? @base.Identifier + : @base.Identifier.Replace(strip.Identifier, string.Empty)) * value; } }