js/units.js
/**
 * Whether or not the label contains metric units or
 * will require text scale.
 *
 **/
Whether or not the label contains metric units or
will require text scale.
Whether or not the label contains metric units or will require text scale .
function hasUnits(label) {
	let startIndex = label.lastIndexOf("(");
	let endIndex = label.lastIndexOf(")");
	return startIndex > 0 && endIndex > startIndex && endIndex < startIndex+4;
}
function hasUnits ( label ) { let startIndex = label . lastIndexOf ( "(" ) ; let endIndex = label . lastIndexOf ( ")" ) ; return startIndex > 0 && endIndex > startIndex && endIndex < startIndex + 4 ; }
Whether or not the label contains metric units or
 will require text scale.
Whether or not the label contains metric units or will require text scale .