I don't know of a built-in function for this, but it's easy to do
with regular expressions. In your case, commandLoc.replace(/\n?$/,
"") ought to do it. Or in general (untested):
function chomp(str)
{
str.replace(/\r?\n?$/, ""); // classic Mac, Unix, or DOS endlines
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden
This email sent to email@hidden