js/calc.js
/**
 * Regex replacement function that returns first operator if multiple are given in the expression. Used by repairOperators()
 * @args Passed in by RegExp.replace.
 * */
Regex replacement function that returns first operator if multiple are given in the expression. Used by repairOperators()
@args Passed in by RegExp.replace.
Regex replacement function that returns first operator if multiple are given in the expression . Used by repairOperators () @args Passed in by RegExp . replace .
function useFirstOp()
{
	var ops = args[0];
	ops = ops.replace(/!/g, "");
	ops = ops.substr(0, 1);
	return ops;
}
function useFirstOp ( ) { var ops = args [ 0 ] ; ops = ops . replace ( / ! / g , "" ) ; ops = ops . substr ( 0 , 1 ) ; return ops ; }
Regex replacement function that returns first operator if multiple are given in the expression.
Regex replacement function that returns first operator if multiple are given in the expression .