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: | fluid |
---|---|
Location: | wickliffe, ohio |
Users: | 5 |
Nodes: | 10 (0 / 10) |
Uptime: | 202:54:02 |
Calls: | 50 |
Files: | 15,838 |
Messages: | 50,760 |