On 11/18/2009 1:53 AM, art wrote:
now you can use yourstring.ltrim()
Thanks Deuce and Tracker1...
I was hoping I wouldn't need to regexp it and it was provided as part of JSOM,
however I'll likely implement a function as you guys have provided the regexp for, thanks.
I have a pretty good set of ObjectModelExtensions for JS if you're interested.
As it is, they should all work in synchronet. Most of them are for things that are sometimes surprising aren't *IN* JavaScript's language. Though it's pretty easy to extend/graft any object/class after the fact.
I have stuff for some .toFormat overload methods for String and Date. I've also spent a little time trying to get base2 functioning in Synchronet properly, but that's been a bit of an effort. base.js works without much trouble though. Still need to implement a number formatter for String.toFormat. It does work with dates as-is ex:
var fmt = "This is a string with a date-time of " +
"{dtm:yyyy-MM-dd HH:mm:ss} " +
"as well as another property of {prop2}.";
var fmt2 = "This uses numbered arguments {0} and {1}";
var now = new Date();
var ret = fmt.toFormat({ dtm:now, prop2: 6 });
var ret2 = fmt2.toFormat(now, 5);
--
Michael J. Ryan -
http://tracker1.info/
... FRA #144: There's nothing wrong with charity ... as long as it winds up in your pocket.
---
þ Synchronet þ Roughneck BBS -
telnet://roughneckbbs.com - www.roughneckbbs.com