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: | 54 |
Nodes: | 8 (0 / 8) |
Uptime: | 129:03:36 |
Calls: | 700 |
Files: | 17,895 |
D/L today: |
128 files (60,769K bytes) |
Messages: | 66,010 |