Ignore:
Timestamp:
Dec 8, 2005, 10:53:44 AM (19 years ago)
Author:
mmc
Message:
  • Fixed a problem in units interpretation. Units "/m3" were being interpreted as "/mm3" so various conversions were wrong. Working better now.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/units.tcl

    r115 r146  
    450450    }
    451451    # note: case-insensitive matching for metric prefix
    452     if {[regexp {^(/?)([cCmMuUnNpPfFaAkKgGtT])(.+)$} $units match slash prefix tail]} {
     452    if {[regexp {^(/?)([cCmMuUnNpPfFaAkKgGtT]?)([a-zA-Z].+)$} $units match slash prefix tail]} {
    453453        if {[regexp {^[CUNFAK]$} $prefix]} {
    454454            # we know that these should be lower case
Note: See TracChangeset for help on using the changeset viewer.