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: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,049 |
Nodes: | 15 (1 / 14) |
Uptime: | 98:37:10 |
Calls: | 235,754 |
Calls today: | 4 |
Files: | 60,336 |
D/L today: |
213 files (577M bytes) |
Messages: | 20,616,130,582 |
Posted today: | 3 |