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,038 |
Nodes: | 15 (1 / 14) |
Uptime: | 167:35:14 |
Calls: | 236,303 |
Calls today: | 10 |
Files: | 95,024 |
D/L today: |
9,912 files (2,102M bytes) |
Messages: | 289,451 |