Is there a way to trim whitespaces at the beginning of strings, like truncsp()?
Hi all,
Is there a way to trim whitespaces at the beginning of strings, like truncsp()?
now you can use yourstring.ltrim()
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 intereste
As it is, they should all work in synchronet. Most of them are for things
return this.replace(/^[\s\r\n]+/g, '');
return this.replace(/^[\s\r\n]+|[\s\r\n]+$/g, '');
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 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.
Well, you could do it without a regexp, but it would be harder.
Well, you could do it without a regexp, but it would be harder.
I have a pretty good set of ObjectModelExtensions for JS if you're intereste >> As it is, they should all work in synchronet. Most of them are for things
I would be interested in taking a look, if you're happy to provide it. Although
the JS and Synchronet APIs are decent, some stuff like .trim would be very useful.
Sysop: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 578 |
Nodes: | 8 (0 / 8) |
Uptime: | 29:32:35 |
Calls: | 10,736 |
Calls today: | 1 |
Files: | 5 |
Messages: | 443,197 |
Posted today: | 1 |