Re: Parsing modopts.iniã > By: Mortifis to All on Thu Nov 14 2019 11:28 amãã > > I am trying to read a string from modopts.ini and wanting to split theã > > string filtering out whitespace and then iterating through the string forã > > a match ...ãã > > modopts.ini example:ãã > > [mysection]ã > > something = bla blah bleh bladdie bluh bleãã > > my.jsãã > > var mystuff = load({}, 'modopts.ini', 'mysection');ãã > > var stuff = mystuff.something.split((/(\s+)/);ããã > > gives a JS TypeError: mystuff.something is undefinedãã > > What am I doing wrong, please?ãã > The second argument to load() should be 'modopts.js' there (notã > modopts.ini).ã ^^^^^^^^^^^^^ããDuh! LOL ... thank you, DMãã---ã þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81ã
| Sysop: | Karloch |
|---|---|
| Location: | Madrid, Spain |
| Users: | 73 |
| Nodes: | 8 (4 / 4) |
| Uptime: | 140:41:00 |
| Calls: | 1,607 |
| Calls today: | 1 |
| Files: | 17,895 |
| D/L today: |
5 files (1,288K bytes) |
| Messages: | 66,936 |