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,043 |
Nodes: | 15 (0 / 15) |
Uptime: | 42:03:56 |
Calls: | 500,900 |
Calls today: | 3 |
Files: | 109,370 |
D/L today: |
4,748 files (492M bytes) |
Messages: | 304,224 |